AppDynamics Knowledge Base

Exposing an MBean as a JMX Metric

Exposing an MBean as a JMX Metric

Default JMX Metrics Example 

Some MBeans exposed by various supported application servers are preconfigued as JMX Metrics that can be viewed in the JMX Metrics Browser.

In this screen capture of the JMX Metrics Browser, under Web Container Runtime, you can see the two metrics "Error Count" and "Request Count".

image.png

Where did these come from? These metrics were configured from MBeans exposed by the Tomcat web container.  To see the configuration for these metrics, do the following:

1. Select Configure -> Instrumentation.

2. Select the application.

3. Select the JMX tab.

image.png

In this "metric rule" named Tomcat_GlobalRequestProcessor", you can see where the Metric Path and the MBean matching criteria in the domain "Catalina" have been specified. This path in the metric browser was seen in the first screen capture.

The next screen capture shows the two attributes of this MBean.

image.png

Labels (1)
Version history
Last update:
‎02-19-2015 03:12 PM
Updated by: