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

Generated metrics have duplicate labels

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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.

    Description

      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.

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: