APM - An example of Java Agent URL groupings
search cancel

APM - An example of Java Agent URL groupings

book

Article ID: 10915

calendar_today

Updated On:

Products

DX Application Performance Management CA Application Performance Management Agent (APM / Wily / Introscope) DX APM SaaS

Issue/Introduction

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?

Environment

  • DX APM

Resolution

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

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/dx-apm-agents/SaaS/java-agent/configure-java-monitoring/configure-frontend-url-groups.html 

Java Agent URL Grouping Best Practices
https://knowledge.broadcom.com/external/article/95405