Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19151

Several metrics are not loaded correctly from their MBean

XMLWordPrintable

      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

            jaslee@redhat.com Jason Lee
            roland.spindelbalker@ntsretail.com Roland Spindelbalker-Davila
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: