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