-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
None
-
None
-
None
-
False
-
None
-
False
-
-
-
-
-
-
-
-
When updating our Grafana dashboards to the new metric names and format published by the micrometer subsystem, we noticed that several metrics are present, but always report the value 0. Upon closer inspection (and some debugging) we found out that those metrics are all based on JMX MBeans. Their names and MBean attributes seem to be taken from the properties file jmx-metrics.properties. And exactly there the bug occurs, because the actual attribute for them is named differently, e.g. in this case:
Here the derived attribute name is PeakThread_count, while the actual attribute from the MBean is called PeakThreadCount.
The exception is later swallowed and the optional value of the metric is not set, therefore the value is always 0.
As far as we know, this affects the following metrics:
- thread_max_count
- classloader_loaded_classes
- cpu_system_load_average
- cpu_process_cpu_time
- classloader_unloaded_classes
- classloader_loaded_classes_count
- thread_count
- thread_daemon_count
- cpu_available_processors
- incorporates
-
WFLY-19151 Several metrics are not loaded correctly from their MBean
- Closed
- is cloned by
-
JBEAP-26861 [GSS] WFLY-19151 - Several metrics are not loaded correctly from their MBean
- New
- relates to
-
JBEAP-26863 (7.4.z) Fix missed JMX bean name
- Closed