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

wrong metric behavior "kubevirt_vmi_number_of_outdated"

XMLWordPrintable

    • 1
    • CNV I/U Operators Sprint 254, CNV I/U Operators Sprint 255, CNV I/U Operators Sprint 256, CNV I/U Operators Sprint 257
    • Moderate
    • No

      Description of problem:

      metrics kubevirt_vmi_number_of_outdated: ndication for the total number of VirtualMachineInstance workloads that are not running within the most up-to-date version of the virt-launcher environment. Type: Gauge.

      the data that is fetched is coming from virt-controller pods, in normal cluster we have more tan one pod, so each pod will show zero.

      oc exec -n openshift-monitoring prometheus-k8s-0 -c prometheus – curl -s http://127.0.0.1:9090/api/v1/query?query=kubevirt_vmi_number_of_outdated | jq .
      {
        "status": "success",
        "data": {
          "resultType": "vector",
          "result": [
            {
              "metric":

      {           "__name__": "kubevirt_vmi_number_of_outdated",           "container": "virt-controller",           "endpoint": "metrics",           "instance": "10.128.2.110:8443",           "job": "kubevirt-prometheus-metrics",           "namespace": "openshift-cnv",           "pod": "virt-controller-65c95994c6-tgx22",           "service": "kubevirt-prometheus-metrics"         }

      ,
              "value": [
                1716312231.545,
                "0"
              ]
            },
            {
              "metric":

      {           "__name__": "kubevirt_vmi_number_of_outdated",           "container": "virt-controller",           "endpoint": "metrics",           "instance": "10.131.0.83:8443",           "job": "kubevirt-prometheus-metrics",           "namespace": "openshift-cnv",           "pod": "virt-controller-65c95994c6-jc4jz",           "service": "kubevirt-prometheus-metrics"         }

      ,
              "value": [
                1716312231.545,
                "0"
              ]
            }
          ]
        }

       

       

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

      cnv- v4.17

      How reproducible:

      100% 

      Steps to Reproduce:

      1.create cluster
      2.run the metrics 
      3.
      

      Actual results:

       

      Expected results:

      expected to see one indicator of the total outdated vm, not two indicators 

      Additional info:

       

        1. image-2024-05-21-20-20-20-559.png
          89 kB
          Ahmad Hafi
        2. image-2024-05-21-20-21-31-538.png
          114 kB
          Ahmad Hafi
        3. image-2024-07-25-11-18-49-624.png
          43 kB
          Ahmad Hafi

              aadmi@redhat.com Assaf Admi (Inactive)
              rh-ee-ahafe Ahmad Hafi
              Ahmad Hafi Ahmad Hafi
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: