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

[4.18]Some metrics are not reported by virt-controller

XMLWordPrintable

    • CNV I/U Operators Sprint 267, CNV I/U Operators Sprint 268, CNV I/U Operators Sprint 269, CNV I/U Operators Sprint 270
    • None

      Description of problem:

      We see that not all the metrics are reported by virt-controller.
      
      There is a bug in the kubevirt_vmi_status_addresses metric, for vmi with networks interfaces with empty IPs, and when its the collected before with the same name and label values, the endpoint only shows the errors

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

      4.18

      How reproducible:

       

      Steps to Reproduce:

      1.Have a VM with networks interfaces with empty IPs.
      2.
      3.
      

      Actual results:

      Not all metrics are reported

      Expected results:

      All metrics should be reported

      Additional info:

      This is from the pod:
      
      sh-5.1$ curl -sk https://localhost:8443/metrics
      An error has occurred while serving metrics:
      
      74 error(s) occurred:
      * collected metric "kubevirt_vmi_status_addresses" { label:{name:"address" value:""} label:{name:"name" value:"node-01"} label:{name:"namespace" value:"rabin"} label:{name:"node" value:"cnvqe-28.lab.eng.tlv2.redhat.com"} label:{name:"type" value:"InternalIP"} gauge:{value:1}} was collected before with the same name and label values
      * collected metric "kubevirt_vmi_status_addresses" { label:{name:"address" value:""} label:{name:"name" value:"ilpinto-ecosys-worker-6"} label:{name:"namespace" value:"rhv-ilpinto"} label:{name:"node" value:"zeus10.lab.eng.tlv2.redhat.com"} label:{name:"type" value:"InternalIP"} gauge:{value:1}} was collected before with the same name and label values
      * collected metric "kubevirt_vmi_status_addresses" { label:{name:"address" value:""} label:{name:"name" value:"ilpinto-ecosys-worker-6"} label:{name:"namespace" value:"rhv-ilpinto"} label:{name:"node" value:"zeus10.lab.eng.tlv2.redhat.com"} label:{name:"type" value:"InternalIP"} gauge:{value:1}} was collected before with the same name and label values
      * collected metric "kubevirt_vmi_status_addresses" { label:{name:"address" value:""} label:{name:"name" value:"ilpinto-ecosys-worker-5"} label:{name:"namespace" value:"rhv-ilpinto"} label:{name:"node" value:"zeus10.lab.eng.tlv2.redhat.com"} label:{name:"type" value:"InternalIP"} gauge:{value:1}} was collected before with the same name and label values
      * collected metric "kubevirt_vmi_status_addresses" { label:{name:"address" value:""} label:{name:"name" value:"ilpinto-ecosys-worker-5"} label:{name:"namespace" value:"rhv-ilpinto"} label:{name:"node" value:"zeus10.lab.eng.tlv2.redhat.com"} label:{name:"type" value:"InternalIP"} gauge:{value:1}} was collected before with the same name and label values
      * collected metric "kubevirt_vmi_status_addresses" { label:{name:"address" value:""} label:{name:"name" value:"ilpinto-ecosys-worker-4"} label:{name:"namespace" value:"rhv-ilpinto"} label:{name:"node" value:"monster01.lab.eng.tlv2.redhat.com"} label:{name:"type" value:"InternalIP"} gauge:{value:1}} was collected before with the same name and label values
      * collected metric "kubevirt_vmi_status_addresses" { label:{name:"address" value:""} label:{name:"name" value:"ilpinto-ecosys-worker-4"} label:{name:"namespace" value:"rhv-ilpinto"} label:{name:"node" value:"monster01.lab.eng.tlv2.redhat.com"} label:{name:"type" value:"InternalIP"} gauge:{value:1}} was collected before with the same name and label values
      * collected metric "kubevirt_vmi_status_addresses" { label:{name:"address" value:""} label:{name:"name" value:"cosmin-0926d324-jbbgk"} label:{name:"namespace" value:"clusters-cosmin"} label:{name:"node" value:"monster01.lab.eng.tlv2.redhat.com"} label:{name:"type" value:"InternalIP"} gauge:{value:1}} was collected before with the same name and label values
      * collected metric "kubevirt_vmi_status_addresses" { label:{name:"address" value:""} label:{name:"name" value:"orenc-v8vrj-spzrv"} label:{name:"namespace" value:"clusters-orenc"} label:{name:"node" value:"zeus07.lab.eng.tlv2.redhat.com"} label:{name:"type" value:"InternalIP"} gauge:{value:1}} was collected before with the same name and label values

              jvilaca@redhat.com João Vilaça
              sradco Shirly Radco
              Ohad Revah Ohad Revah
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: