cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Vivek.Sundararajan
AppDynamics Team

Step-by-Step Guide to Creating Custom JMX Attributes in the MBean Browser

  1. 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​

    Picture1.png
  1. Now click on Configure JMX Metrics
  2. Click Add -> JMX Config
  3. Provide a name and description and click Save
  4. Now select the JMX Config and Add a Rule
  5. 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​
  6. 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]​

    VivekSundararajan_1-1725311923762.png
  1. 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
    VivekSundararajan_2-1725311923769.png

 

Version history
Last update:
‎09-05-2024 11:45 AM
Updated by:
On-Demand Webinar
Discover new Splunk integrations and AI innovations for Cisco AppDynamics.


Register Now!

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here