Closed stratanic closed 6 months ago
metrics : on http://x.xx.x.x:19999
# HELP jmx_scrape_duration_seconds Time this JMX scrape took, in seconds.
# TYPE jmx_scrape_duration_seconds gauge
jmx_scrape_duration_seconds 60.038281106
# HELP jmx_scrape_error Non-zero if this scrape failed.
# TYPE jmx_scrape_error gauge
jmx_scrape_error 1.0
# HELP jmx_scrape_cached_beans Number of beans with their matching rule cached
# TYPE jmx_scrape_cached_beans gauge
jmx_scrape_cached_beans 0.0
# HELP jmx_config_reload_failure_total Number of times configuration have failed to be reloaded.
# TYPE jmx_config_reload_failure_total counter
jmx_config_reload_failure_total 0.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.20.0",name="jmx_prometheus_httpserver",} 1.0
# HELP jmx_config_reload_success_total Number of times configuration have successfully been reloaded.
# TYPE jmx_config_reload_success_total counter
jmx_config_reload_success_total 0.0
# HELP jmx_config_reload_failure_created Number of times configuration have failed to be reloaded.
# TYPE jmx_config_reload_failure_created gauge
jmx_config_reload_failure_created 1.70202424196E9
# HELP jmx_config_reload_success_created Number of times configuration have successfully been reloaded.
# TYPE jmx_config_reload_success_created gauge
jmx_config_reload_success_created 1.702024241959E9
Your exporter YAML configuration looks incorrect...
hostPort: localhost:19999
hostPort
should be the remote applications JMX port.
The standalone JMX Exporter HTTP endpoint listening on port 19999...
-jar /opt/jmx_exporter/jmx_prometheus_httpserver.jar 19999 /opt/jmx_exporter/config.yaml
While the standalone JMX Exporter works, it's discouraged. The standalone JMX Exporter can't get JVM metrics of the remote application.
Thanks, it's working after the change 👍 hostPort: localhost:19998 Awesome, its so hard with old Aix to have some metrics...
Another question: the smaller agent is the http agent? any suggestion if I just want operating system metrics?
I would look at node_exporter_aix
https://github.com/thorhs/node_exporter_aix
Not compatible with old aix, lower than 7.1. Already try...I post an issue.
On a old aix you can just make script and scrapt it with ssh
Hello, I try use the jmx exporter on an old AIX, v6.1, and java 8
It start but nothing to scrape with HTTP version jmx_exporter
Important : I just want Cpu and memory metrics.
config: JAVA_HOME=/usr/java8_64/jre;export JAVA_HOME export PATH=/usr/java8_64/jre/bin:$PATH. export CLASSPATH=/opt/jmx_exporter/jmx_prometheus_httpserver.jar
-----file /opt/jmx_exporter/config.yaml ---- hostPort: localhost:19999 rules:
command line: /usr/java8_64/jre/bin/java \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.port=19998 \ -jar /opt/jmx_exporter/jmx_prometheus_httpserver.jar 19999 /opt/jmx_exporter/config.yaml
error msg: