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.
https://github.com/prometheus/jmx_exporter/blob/main/integration_test_suite/integration_tests/src/test/resources/docker-image-names.txt On Friday, May 12, 2023 at 8:29:47 AM UTC-4 tantan hngo wrote: > 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: > [image: r/PrometheusMonitoring - Prometheus JMX Exporter for Java17] > <https://preview.redd.it/01vvko0e8rya1.png?width=1049&format=png&auto=webp&v=enabled&s=0fc964476722c697c0931f3d96b040e2480c7345> > > 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 >< > > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a3cbc7a3-eef1-4f62-ac20-1f78d4c5d36dn%40googlegroups.com.