You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/virt-querying-metrics.adoc
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,18 @@ The following metric descriptions include example Prometheus Query Language (Pro
12
12
These metrics are not an API and might change between versions.
13
13
====
14
14
15
-
16
15
[id="virt-promql-vcpu-metrics_{context}"]
17
16
== vCPU metrics
18
17
18
+
[NOTE]
19
+
====
20
+
The vCPU metric requires the `schedstats=enable` kernel argument applied to the `MachineConfig` object before it can be used. This kernel argument enables scheduler statistics used for debugging and performance tuning and adds a minor additional load to the scheduler.
21
+
====
22
+
19
23
`kubevirt_vmi_vcpu_wait_seconds`::
20
24
Returns the wait time (in seconds) for a virtual machine's vCPU.
21
25
22
-
A value above '0' means that the vCPU wants to run, but the host scheduler cannot run it yet. This indicates that there is an issue with Input/Output.
26
+
A value above '0' means that the vCPU wants to run, but the host scheduler cannot run it yet. This inability to run indicates that there is an issue with Input/Output.
23
27
24
28
.Example query
25
29
[source,promql]
@@ -50,7 +54,7 @@ The above query returns the top 3 VMs transmitting the most network traffic at e
50
54
== Storage metrics
51
55
52
56
`kubevirt_vmi_storage_read_traffic_bytes_total`::
53
-
Returns the total amount (in bytes) of the virtual machine's storage-related traffic.
57
+
Returns the total amount (in bytes) of the virtual machine's storage-related traffic.
Returns the total amount (in bytes) of memory the virtual guest is swapping out.
94
+
Returns the total amount (in bytes) of memory the virtual guest is swapping out.
91
95
92
-
Memory swapping indicates that the virtual machine is under memory pressure. Increasing the memory allocation of the virtual machine can mitigate this issue.
96
+
Memory swapping indicates that the virtual machine is under memory pressure. Increasing the memory allocation of the virtual machine can mitigate this issue.
93
97
94
98
[NOTE]
95
99
====
@@ -102,5 +106,4 @@ These queries only return data for virtual guests that have memory swapping enab
102
106
topk(3, sum by (name, namespace) (round(irate(kubevirt_vmi_memory_swap_in_traffic_bytes_total[6m]), 0.1))
103
107
+ sum by (name, namespace) (round(irate(kubevirt_vmi_memory_swap_out_traffic_bytes_total[6m]), 0.1))) > 0
104
108
----
105
-
The above query returns the top 3 VMs where the guest is performing the most memory swapping at every given moment in time over a six-minute time period.
106
-
109
+
The above query returns the top 3 VMs where the guest is performing the most memory swapping at every given moment in time over a six-minute time period.
Copy file name to clipboardExpand all lines: virt/logging_events_monitoring/virt-prometheus-queries.adoc
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,6 @@ toc::[]
14
14
Use the {product-title} monitoring dashboard to query virtualization metrics.
15
15
16
16
.Prerequisite
17
-
18
17
* The vCPU metric requires the `schedstats=enable` kernel argument applied to the `MachineConfig` object before it can be used. This kernel argument enables scheduler statistics used for debugging and performance tuning and adds a minor additional load to the scheduler. See the xref:../../post_installation_configuration/machine-configuration-tasks.adoc#nodes-nodes-kernel-arguments_post-install-machine-configuration-tasks[{product-title} machine configuration tasks] documentation for more information on applying a kernel argument.
0 commit comments