Prometheus JMX Exporter Help

88 views
Skip to first unread message

tantan hngo

unread,
May 12, 2023, 8:29:47 AM5/12/23
to Prometheus Users

Hello everyone,

not quite sure if this is where I should be asking for help but i'm kind of befuddled about this whole situation. I'm trying to set up https://github.com/prometheus/jmx_exporter for our containerized Java application on our cluster. Specifically the JavaAgent as we are interested in getting the CPU and memory metrics. However, getting it initialized I am faced with this:

r/PrometheusMonitoring - Prometheus JMX Exporter for Java17

After doing some research it appears this class references internal packages and therefore "makes it unusable for modern Java apps" (https://github.com/prometheus/client_java/issues/533 , https://github.com/open-telemetry/opentelemetry-java/issues/4192) and also that the error suggests that the agent has been written for older java since these classes were apparently removed years ago.

I am not a Java developer, just trying to make this work for our monitoringstack. Has anyone else here tried exporting jmx metrics with prometheus or are you maybe using something else? I tried basically doing the same thing as this person: https://github.com/Ilak-0/prometheus-jmx-exporter-kubernetes

I've been stuck on this for too long and will soon have my hair falling off ><

Doug Hoard

unread,
May 13, 2023, 2:49:14 AM5/13/23
to Prometheus Users
What Java version / JVM distribution are you using?

The integration test suite tests 65 combinations of Java versions / different JVM distributions of the Java agent version and standalone HTTP server version. No errors. 

Reply all
Reply to author
Forward
0 new messages