jmx_exporter
jmx_exporter copied to clipboard
Version 0.17.0 is returning unknown version and name info
Docker image version 0.17.0 is returning jmx_exporter_build_info{version="unknown",name="unknown",} 1.0
, which is breaking our scrape to this metrics.
Expected behavior:
The same result of 0.16.1 version image jmx_exporter_build_info{version="0.16.1",name="Prometheus JMX Exporter - Http Server",} 1.
Unfortunately, I can confirm this problem.
$ curl -s http://localhost:9108 | grep build
# HELP jmx_exporter_build_info A metric with a constant '1' value labeled with the version of the JMX exporter.
# TYPE jmx_exporter_build_info gauge
jmx_exporter_build_info{version="unknown",name="unknown",} 1.0
Problem is still persistent in 0.17.2
.
@kaiquerass @LHozzan I created a PR to resolve the issue.
However, the name will represent the artifact name jmx_prometheus_httpserver
and not the project name Prometheus JMX Exporter - Http Server
(The name change was apparently made post 0.0.16
... not sure why)
@kaiquerass @LHozzan please verify against 0.18.0
and close if resolved.
@devopology Thank you, I can confirm, that problem was solved.
$ curl -s http://localhost:9108 | grep build
# HELP jmx_exporter_build_info A metric with a constant '1' value labeled with the version of the JMX exporter.
# TYPE jmx_exporter_build_info gauge
jmx_exporter_build_info{version="0.18.0",name="jmx_prometheus_httpserver",} 1.0