-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jmx exporter doesn't work with exporter-exporter #621
Comments
Hi, please let me know your |
Hi, Here is the exporter-exporter config:
The jmx config file is almost the same as this one: The command line to run the Java application is part of the ActiveMQ service start command:
|
Hi, These are the error messages I am getting when I run exporter-exporter in debug mode. See the attached file. |
The error in
I don't see where this comes from. I ran an example, and the
Please run |
I think I might see what's going on. That's valid Prometheus format, but could run into issues if you've something that's treating it as OpenMetrics. I'd suggest remaning the two counters to loads and unloads to avoid the clash, though I'm on unclear on what exactly is noticing the clash. |
Fabian and Brian, Yes, I am getting the same output from curl command:
The issue is not with the metrics output itself. The issue is that exporter-exporter expects an HTML page to this request "http://localhost:/proxy?module=jmx". I am trying to setup jmx-exporter to be directly queried from Prometheus, but so far I am facing other issues |
Stupid question, but I want to make sure that we are looking at the same thing: Are you talking about https://github.com/QubitProducts/exporter_exporter? I'm wondering because the config you posted above (with keys like |
The config I posted is for consul service, so the jmx-exporter service is registered through the exporter-exporter service. The config for the jmx-exporter in exporter-exporter is very simple:
|
I'm still struggling to reproduce this. Here are the commands I used trying to set this up: Download, unpack, create config:
Run ActiveMQ
Run exporter_exporter
Metrics on http://localhost:9999/proxy?module=jmx are as expected. Can you spot the difference between my setup and your's? |
Opened an issue here prometheus/common#319 |
I renamed |
@fstab are there plans for a release of the |
I've created a TCP dump with exporter-exporter and here is what I see: 'accept: application/openmetrics-text' The important part is: # TYPE jvm info
# HELP jvm VM version info
jvm_info{runtime="OpenJDK Runtime Environment",vendor="Red Hat, Inc.",version="1.8.0_292-b10"} 1.0 Maybe in this case it should show TYPE summary or TYPE count not info exporter-exporter journal output: Sep 27 15:25:43 myhost exporter_exporter[91007]: time="2022-09-27T15:25:43+02:00" level=error msg="Verification for module 'connector-exporter' failed: Failed to decode metrics from proxied server: text format parsing error in line 990: unknown metric type \"info\"" Older jmx exporter uses gauge: # TYPE jvm_info gauge
jvm_info{version="1.8.0_292-b10",vendor="Red Hat, Inc.",runtime="OpenJDK Runtime Environment",} 1.0
# 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.12.1-SNAPSHOT",name="jmx_prometheus_javaagent",} 1.0 |
The 0.12.1-SNAPSHOT uses cae9f262557 |
Easy check: [root@myhost ~]# curl -s -H 'Accept: application/text' localhost:9405/metrics|grep 'jvm.*info'
# HELP jvm_info VM version info
# TYPE jvm_info gauge
jvm_info{runtime="OpenJDK Runtime Environment",vendor="Red Hat, Inc.",version="1.8.0_292-b10",} 1.0
[root@myhost ~]# curl -s -H 'Accept: application/openmetrics-text' localhost:9405/metrics|grep 'jvm.*info'
# TYPE jvm info
# HELP jvm VM version info
jvm_info{runtime="OpenJDK Runtime Environment",vendor="Red Hat, Inc.",version="1.8.0_292-b10"} 1.0 |
Jmx exporter doesn't work with exporter-exporter.
Exporter-exporter expects the following html page for the proxy request "http://localhost:/proxy?module=jmx" but receive the /metrics
The text was updated successfully, but these errors were encountered: