Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

difference between metrics in jmx exporter #915

Open
acharbha opened this issue Feb 19, 2024 · 1 comment
Open

difference between metrics in jmx exporter #915

acharbha opened this issue Feb 19, 2024 · 1 comment

Comments

@acharbha
Copy link

acharbha commented Feb 19, 2024

my /opt/activemq/conf/jmxexporter.yml is configured to enable all metrics -
echo 'rules:

  • pattern: ".*"' > /opt/activemq/conf/jmxexporter.yml

I would like to understand the difference between these 2 metrics, are they same if so why there's a difference and if they are different why do we say same name java heap memory ?
Can someone please help me understand this ?

# HELP jvm_memory_bytes_used Used bytes of a given JVM memory area.
# TYPE jvm_memory_bytes_used gauge
jvm_memory_bytes_used{area="heap",} 5.694892E7

# HELP java_lang_Memory_HeapMemoryUsage_used java.lang.management.MemoryUsage java.lang:name=null,type=Memory,attribute=used
# TYPE java_lang_Memory_HeapMemoryUsage_used untyped
java_lang_Memory_HeapMemoryUsage_used 6.21918E7
@acharbha acharbha changed the title difference between difference between metrics in jmx exporter Feb 20, 2024
@dhoard dhoard self-assigned this Apr 19, 2024
@dhoard
Copy link
Collaborator

dhoard commented Apr 19, 2024

The metrics use the same Java MBean java.lang:type=MemoryPool but collect the value at different times. If the heap usage changes between calls to the MBean, you will have different values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants