jmx_exporter icon indicating copy to clipboard operation
jmx_exporter copied to clipboard

Version 0.17.0 is returning unknown version and name info

Open kaiquerass opened this issue 2 years ago • 1 comments

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.

kaiquerass avatar Aug 10 '22 15:08 kaiquerass

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

LHozzan avatar Aug 16 '22 13:08 LHozzan

Problem is still persistent in 0.17.2.

LHozzan avatar Nov 30 '22 15:11 LHozzan

@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)

dhoard avatar Feb 08 '23 14:02 dhoard

@kaiquerass @LHozzan please verify against 0.18.0 and close if resolved.

devopology avatar Mar 11 '23 17:03 devopology

@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

LHozzan avatar Mar 13 '23 11:03 LHozzan