Release : 11..x 19.x 20.x
Component : APM Agents
Using the default property values in the extension the JMX branches reported for an example Tomcat agent look like this
To just the following
Using Jconsole it is possible to see the details of how this is exposed object is exposed
Create a new module (mymetrics) by creating a new module folder mymetrics under the extensions/remotejmx-dd040621-20.1.0.44/config/modules folder i.e.
/APMIA/apmia20.1.0.44/extensions/remotejmx-dd040621-20.1.0.44/config/modules/mymetrics
in here create a file jmx.yml with the following content
version: "1.0"
configElements:
- objectName: "Catalina:type=Manager,*"
attribute: "processingTime"
metricName: "{rootNode}|{domain}|Context={context}|{host}|Type={type}:processingTime"
metricType: "counter"
Note the wildcard in the ObjectName specification and how that relates to what is in Jconsole – it is possible to be more specific by defining additional elements of the name. Also note the use of variables in the metricName and how they are expanded in the investigator (below)
Finally set the modules property in the bundles.properties file to include this new module
introscope.agent.remotejmx.system.s1.config.modules=jvm,mymetrics
And with the Whitelist defined as
introscope.agent.remotejmx.system.s1.mbeanPatternsWhiteList=Users:type=Role,*
This now reports as