After enabling the agent I have noticed that the Frontends URLs are causing a metric explosion as below:
URLs
/portal/user/111111/java1.js
/portal/user/222222/java2.js
/portal/user/111111/img1.png
/portal/user/222222/img2.png
/portal/user/aaaaaaaaaa/app01
/portal/user/bbbbbbbbbb/app01/-/universe1/sales
/portal/user/ccccccccccc/app04/-/subspace1
/portal/user/dddddddddd/app04/-/subspace6/cat1
....
I would like to reconfigure frontend URL grouping as below:
a) All images (*.jpg, *.png, jpg) under a url group called /images
b) All JavaScript (*.js ) under a url group called /javascript
c) Normalize the User URLs so it only display the different methods in a format like /portal/*/app<#>/<method> and remove the sessionsID
d) All the rest URLs should go under the "Default" group
How to achieve this?
1) Open the IntroscopeAgent profile
2) Update your frontends urlgroupings definitions as below:
introscope.agent.urlgroup.keys=javascript,png,jpg,groupuserdata,default
# javascript
introscope.agent.urlgroup.group.javascript.pathprefix=*.js
introscope.agent.urlgroup.group.javascript.format=/javascript
# images
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
# groupuserdata
introscope.agent.urlgroup.group.groupuserdata.pathprefix=/portal/user/
introscope.agent.urlgroup.group.groupuserdata.format=/portal/*/{path_delimited:/:11:14}
# all the rest
introscope.agent.urlgroup.group.default.pathprefix=*
introscope.agent.urlgroup.group.default.format=Default
3) Explanation of url definitions
- javascript group will 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/*/<method>”
{path_delimited:/:11:14} : the agent will split the urls as below for example:
0 = /
1 = portal
2 = /
3 = user
4 = /
5 = ID
6 = /
7 = app04
8 = /
9 = -
10 = /
11 = subspace6
12 = /
13 = cat1
4) Here is an example of the result after applying the changes:
URLs
/images
/javascripts
/portal/*/
/universe1/sales
/subspace1
/subspace6/cat1