prometheus / jmx_exporter

A process for exposing JMX Beans via HTTP for Prometheus consumption
Apache License 2.0
3.02k stars 1.2k forks source link

Missing metrics when integrating jmx_prometheus_javaagent:1.0.1 with WildFly #1008

Open alexciouca opened 5 hours ago

alexciouca commented 5 hours ago

Hello,

After upgrading the jmx_prometheus_javaagent from v0.20.0 to v1.0.1, I noticed that most of the metrics provided by jboss are missing. For example, all the metrics from jboss.as domain are missing, plus many others.

Would you have any idea what extra configuration do I need to set with the upgrade to v1.0.1 ?

The used configuration YAML is:

rules:
  - pattern: ".*"
dhoard commented 4 hours ago

@alexciouca the rules you are using should capture everything.

Are you seeing other metrics? Is the exporter scrape error metric > 0? Can you either define an environment variable or Java system property to capture developer debug?

environment variable

JMX_PROMETHEUS_EXPORTER_DEVELOPER_DEBUG=true

Java system property

jmx.prometheus.exporter.developer.debug=true

The output will go to system out.