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

Generated metrics have duplicate labels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 19.0.0.Final
    • None
    • MP Metrics
    • None
    • Hide
      • In Keycloak, turn the KEYCLOAK_STATISTICS flag to true.
      • See that some metrics are duplicated.
      Show
      In Keycloak, turn the KEYCLOAK_STATISTICS flag to true. Open  http://localhost:9990/metrics  endpoint. See that some metrics are duplicated.

      We are using Keycloak which generates metrics using the jBoss CLI: https://github.com/keycloak/keycloak-containers/blob/master/server/tools/statistics.sh

       We want to use Telegraf (with the Prometheus input plugin) to read the generated metrics. However, we get the following error:

      Error in plugin: error reading metrics for http://localhost:9990/metrics: reading text format failed: text format parsing error in line 34: second HELP line for metric name "base_gc_total"

      The base_gc_total metric appears twice for some reason. See the full metrics output in the attachment.

       

            jmesnil1@redhat.com Jeff Mesnil
            ivonask Ivona Skorjanc (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: