Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-35221

[2249724] Runbook url for KubeVirtComponentExceedsRequestedCPU in production is wrong and does not match with prometheusrule

XMLWordPrintable

    • CNV I/U Operators Sprint 245
    • High
    • No

      Document URL: https://docs.openshift.com/container-platform/4.14/virt/monitoring/virt-runbooks.html#virt-runbook-kubevirtcomponentexceedsrequestedcpu_virt-runbooks

      Section Number and Name:
      https://docs.openshift.com/container-platform/4.14/virt/monitoring/virt-runbooks.html#virt-runbook-kubevirtcomponentexceedsrequestedcpu_virt-runbooks
      Describe the issue:
      Runbook url for alert kubevirtcomponentexceedsrequestedcpu_virt does not match expected pattern. The prometheusrule says the url is supposed to be https://docs.openshift.com/container-platform/4.14/virt/monitoring/virt-runbooks.html#virt-runbook-KubeVirtComponentExceedsRequestedCPU:

      alert: KubeVirtComponentExceedsRequestedCPU
            annotations:
              description: Pod {{ $labels.pod }} cpu usage exceeds the CPU requested
              runbook_url: https://docs.openshift.com/container-platform/4.14/virt/monitoring/virt-runbooks.html#virt-runbook-KubeVirtComponentExceedsRequestedCPU
              summary: The containers in the pod are using more CPU than what is defined
                in the containers resource requests
            expr: ((kube_pod_container_resource_requests{namespace="openshift-cnv",container=~"virt-controller|virt-api|virt-handler|virt-operator",resource="cpu"})
              - on(pod) sum(rate(container_cpu_usage_seconds_total{container="",namespace="openshift-cnv"}[5m]))
              by (pod)) < 0
            for: 5m
            labels:
              kubernetes_operator_component: kubevirt
              kubernetes_operator_part_of: kubevirt
              operator_health_impact: none
              severity: warning
      
      

      Suggestions for improvement:
      The url should be https://docs.openshift.com/container-platform/4.14/virt/monitoring/virt-runbooks.html#virt-runbook-KubeVirtComponentExceedsRequestedCPU

      Additional information:

              apinnick@redhat.com Avital Pinnick
              rhn-support-dbasunag Debarati Basu-Nag
              Debarati Basu-Nag Debarati Basu-Nag
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: