Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

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".

 

WebContainerRuntime-metrics-in-MetricBrowser.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.

 

show-metric-config.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.

metric-config-from-attributes-for-Catalina-GlobalRequestProcessor.png

Version history
Revision #:
2 of 2
Last update:
‎11-19-2018 07:37 AM
Updated by:
 
Labels (1)
Contributors


Found this article helpful? Click the Thumbs Up button.
Have an additional comment? Post it below.