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/60b5a3fd-e86f-42df-a361-20690b2fd9dfn%40googlegroups.com.

Reply via email to