Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-56738

Fix promtool analyze block shows metric name with 0 cardinality

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • 4.17.z
    • 4.18.z
    • Monitoring
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • MON Sprint 271
    • 1
    • Done
    • None
    • N/A
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-56732. The following is the description of the original issue:

      Description of problem:

      When using promtool to check high cardinality mterics, it reports 0 as the value.
      
      $ oc -n openshift-monitoring -c prometheus prometheus-k8s-1 -- promtool tsdb analyze /prometheus --limit=10
      ---
      Highest cardinality metric names:
      0 :node_memory_MemAvailable_bytes:sum
      0 ALERTS
      0 ALERTS_FOR_STATE
      0 aggregator_discovery_aggregation_count_total
      0 aggregator_unavailable_apiservice
      0 aggregator_unavailable_apiservice_total
      0 alertmanager_alerts
      0 alertmanager_alerts_invalid_total
      0 alertmanager_alerts_received_total
      0 alertmanager_build_info
      
      

      Version-Release number of selected component (if applicable):

      RHOCP 4.18.z

      How reproducible:

       100%

      Steps to Reproduce:

          1. Run command "oc -n openshift-monitoring -c prometheus prometheus-k8s-1 -- promtool tsdb analyze /prometheus --limit=10"
          2. Check "Highest cardinality metric names" section in the output.
          3.
          

      Actual results:

      "Highest cardinality metric names" reports list of metrics but value is 0

      Expected results:

      It should report the actual value of the high cardinality metrics.

      Additional info:

          

              rh-ee-amrini Ayoub Mrini
              rhn-support-dgautam Dhruv Gautam
              None
              None
              Junqi Zhao Junqi Zhao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: