Step-by-Step Guide to Creating Custom JMX Attributes in the MBean Browser
From the MBean browser page select a MBean. Inside that you will have many attributes. Choose the attribute for which you want to create a custom attribute from Eg: ImplementationVersion
Now click on Configure JMX Metrics
Click Add -> JMX Config
Provide a name and description and click Save
Now select the JMX Config and Add a Rule
Here provide a name for the Rule. Metric Path can be any path that you want the attribute to be reported under. Domain name is the Mbean Name. Object Name Match Pattern is the Object Name from MBean Eg:
Metric Path -> Tomcat Test
Domain -> JMImplementation
Object Name Match Pattern -> JMImplementation:type=MBeanServerDelegate
Under Define Metric from MBean Attributes section, define the MBean Attribute , Metric Name and Metric Getter chain that you want and save it. Eg:
MBean Attribute -> ImplementationVersion
Metric Name -> ImplementationVersion
Metric Getter Chain -> toString().split(\\.).[0]
Now go to Node Dashboard -> JMX -> JMX Metrics -> View JMX Metrics. Here under JMX you will be able to see the custom JMX attribute that you created
... View more