How to get CPU usage in JMX custom yaml file?

时间:2018-11-16 21:39:13

标签: java jmx

I have this code in .yaml to get the classes and the uptime but I don't know how do I get the CPU Usage.

Code:

    - include:
        domain: java.lang
        type: Runtime
        attribute:
        Uptime:
           metric_type: gauge
           alias: jvm.uptime


    - include:
       domain: java.lang
       type: ClassLoading
       attribute:
         LoadedClassCount:
           metric_type: gauge
           alias: jvm.classes.count

0 个答案:

没有答案