I have a spring boot application running in a docker container. This application exposes jmx metrics in a port (i can see them using jconsole), but when I try to catch them with prometheus jmx_exporter I cannot get anything.
Mi conf is the following:
+ A docker container with the app exposing the metrics in the port 1099.
+ JMX_exporter (HTTP server mode) with this config.yml:
hostPort: localhost:1099
username:
password:
rules:
- pattern: ".*"
+ Run JMX exporter with the following command:
java -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=5555 -jar jmx_prometheus_httpserver/target/jmx_prometheus_httpserver-0.6-SNAPSHOT-jar-with-dependencies.jar 5556 config.yml
+ Run prometheus with the following prometheus.yml file:
scrape_configs:
- job_name: 'jmx'
scrape_interval: 5s
scrape_timeout: 10s
target_groups:
- targets: ['localhost:5556']
But when I go to the prometheus web console, and i check the "endpoint" localhost:5556/metrics i dont see anything about my jmx data (i see others metrics about Tomcat).
What I am missing??
Thanks in advance guys!
Greetings!
What I am missing??
Thanks in advance guys!
Greetings!
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have tested to monitoring a cassandra docker container instead my app docker container and all is alright. So, what can I do to make Spring Boot JMX metrics compatibles with Prometheus?
With JConsole I can see all the JMX metrics from my docker container (including the Spring Boot Application), so I supose that the JMX "endpoint" is properly exposing the metrics.