Skip to content

Commit 79f6c10

Browse files
authored
Merge pull request #98861 from Vaishali-gif-rh/CNV#45694
CNV - 45694: Added documentation for kubevirt_vmi_vcpu_delay_seconds_total
2 parents c6358a8 + 8f3526f commit 79f6c10

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

modules/virt-querying-metrics.adoc

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Module included in the following assemblies:
2-
//
2+
//
33
// * virt/support/virt-prometheus-queries.adoc
44

55
:_mod-docs-content-type: REFERENCE
@@ -11,7 +11,7 @@ For a complete list of virtualization metrics, see link:https://github.com/kubev
1111

1212
[NOTE]
1313
====
14-
The following examples use `topk` queries that specify a time period. If virtual machines are deleted during that time period, they can still appear in the query output.
14+
The following examples use `topk` queries that specify a time period. If virtual machines (VMs) are deleted during that time period, they can still appear in the query output.
1515
====
1616

1717
// Hiding in ROSA/OSD as user cannot edit MCO
@@ -31,6 +31,18 @@ A value above '0' means that the vCPU wants to run, but the host scheduler canno
3131
To query the vCPU metric, the `schedstats=enable` kernel argument must first be applied to the `MachineConfig` object. This kernel argument enables scheduler statistics used for debugging and performance tuning and adds a minor additional load to the scheduler.
3232
====
3333

34+
`kubevirt_vmi_vcpu_delay_seconds_total`::
35+
Returns the cumulative time, in seconds, that a vCPU was enqueued by the host scheduler but could not run immediately.
36+
This delay appears to the virtual machine as _steal time_, which is CPU time lost when the host runs other workloads. Steal time can impact performance and often indicates CPU overcommitment or contention on the host.
37+
Type: Counter.
38+
39+
*Example vCPU delay query*
40+
[source,promql]
41+
----
42+
irate(kubevirt_vmi_vcpu_delay_seconds_total[5m]) > 0.05 <1>
43+
----
44+
<1> This query returns the average per-second delay over a 5-minute period. A high value may indicate CPU overcommitment or contention on the node.
45+
3446
*Example vCPU wait time query*
3547
[source,promql]
3648
----

0 commit comments

Comments
 (0)