URL groupings to prevent a metric explosion on the frontends

Document ID : KB000010915
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

After enabling the agent you notice that frontends urls are causing a metric explosion, here is a screenshot illustrating the problem:

bad.jpg

You would like to group the application URL as below:

- All images (*.jpg, *.png, jpg) under a url group /images
- All JavaScript (*.js ) under a url group /javascript
- Normalize the User URLs so it only display the different methods in a format like /portal/*/vehicle-info/get-vehicle-details
- All the rest URLs should go under the "Default" group

How to achieve this?

Instructions:

Open the IntroscopeAgent profile, reconfigure your frontends urlgroupings as below:

introscope.agent.urlgroup.keys=javascript,png,jpg,groupuserdata,default

introscope.agent.urlgroup.group.javascript.pathprefix=*.js
introscope.agent.urlgroup.group.javascript.format=/javascript

introscope.agent.urlgroup.group.png.pathprefix=*.png
introscope.agent.urlgroup.group.png.format=/images
introscope.agent.urlgroup.group.jpg.pathprefix=*.jpg
introscope.agent.urlgroup.group.jpg.format=/images

introscope.agent.urlgroup.group.groupuserdata.pathprefix=/portal/user/
introscope.agent.urlgroup.group.groupuserdata.format=/portal/*/{path_delimited:/:11:14}

introscope.agent.urlgroup.group.default.pathprefix=*
introscope.agent.urlgroup.group.default.format=Default 

Explanation:

- javascript group will instruct the agent to include all *.js urls under a node “/javascript”
- png and jpg groups will include all *.png and *.jpg urls under a node “/images”
- groupuserdata group will include all urls that start with “/portal/user/” and report them in the format : “/portal/*/<your method>” 
- {path_delimited:/:11:14} : the delimiter character in this example is the forward slash (/), the segments as delimited by the slash character, here is an example how to agent split the urls:

0 = /
1 = portal
2 = /
3 = user
4 = /
5 = ID
6 = /
7 = v__weiriwejsadjfaskdlf
8 = /
9 = -
10 = /
11 = vehicle-info
12 = /
13 = get-vehicle-details 

Here is a screenshot of the result after applying the changes:

good.jpg