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

Prometheus queries do not work in metrics UI

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      
      On the 4.17 docs for Scalability and performance, it lists a few prometheus queries to check the rate of churn on the cluster. I used the queries listed in the UI of metrics in openshift console and they do not return any data 
      
      Under 'Example scenario' title 
      
      Rate of API calls, or the cluster “churn”, which is an estimation of how quickly things change in the cluster configuration.
      - Prometheus query for pod creation requests per second over 5 minute windows: sum(irate(apiserver_request_count{resource="pods",verb="POST"}[5m]))
      - Prometheus query for all API requests per second over 5 minute windows: sum(irate(apiserver_request_count{}[5m]))
      
      https://docs.openshift.com/container-platform/4.17/scalability_and_performance/planning-your-environment-according-to-object-maximums.html#how-to-plan-according-to-application-requirements_object-limits
      
          

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

      4.17
          

      How reproducible:

      100%
          

      Steps to Reproduce:

          1. Create openshift 4.17 cluster
          2. Open console
          3. Go to metrics tab
          4. Insert query sum(irate(apiserver_request_count{}[5m])) 
          5. Observe no data points 
          

      Actual results:

      No data points are seen for query 
          

      Expected results:

      Data points and graph seen for prometheus query 
          

      Additional info:

      Need to change the prometheus query in some way. I believe the below query does the calls and returns a proper graph and results 
      
      Update to: 
      
      Prometheus query for pod creation requests per second over 5 minute windows:
      sum(irate(apiserver_request_total{resource="pods",verb="POST"}[5m]))
      
      Prometheus query for all API requests per second over 5 minute windows:
      sum(irate(apiserver_request_total{}[5m]))
      
          

              ocp-docs-bot OCP DocsBot
              prubenda Paige Patton
              Liquan Cui Liquan Cui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: