-
Bug
-
Resolution: Done
-
Normal
-
CNV v4.15.0
-
None
-
0.42
-
False
-
-
False
-
None
-
---
-
---
-
-
CNV I/U Operators Sprint 253
-
No
Description of problem:
In order to move units to seconds, kubevirt_vmi_vcpu_wait_seconds_total and kubevirt_vmi_vcpu_seconds_total are divided by nanoseconds (1000000000), however, according to https://www.libvirt.org/manpages/virsh.html#domstats: vcpu.<num>.time - virtual cpu time spent by virtual CPU <num> (in microseconds) vcpu.<num>.wait - virtual cpu time spent by virtual CPU <num> waiting on I/O (in microseconds). They should be divided by microseconds (1000000).
Version-Release number of selected component (if applicable):
Â
How reproducible:
always
Steps to Reproduce:
1. Look at https://github.com/kubevirt/kubevirt/blob/a72353209753b177a2d71abc7204c6254befc89a/pkg/monitoring/domainstats/prometheus/prometheus.go#L272.
Actual results:
kubevirt_vmi_vcpu_wait_seconds_total and kubevirt_vmi_vcpu_seconds_total are divided by nanoseconds
Expected results:
kubevirt_vmi_vcpu_wait_seconds_total and kubevirt_vmi_vcpu_seconds_total are divided by microseconds
Additional info:
Â
Fix PRs:
4.17 - https://github.com/kubevirt/kubevirt/pull/11858
- mentioned on
(73 mentioned on)