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
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ To query the vCPU metric, the `schedstats=enable` kernel argument must first be
30
30
.Example vCPU wait time query
31
31
[source,promql]
32
32
----
33
-
topk(3, sum by (name, namespace) (round(irate(kubevirt_vmi_vcpu_wait_seconds[6m]), 0.1))) > 0 <1>
33
+
topk(3, sum by (name, namespace) (rate(kubevirt_vmi_vcpu_wait_seconds[6m]))) > 0 <1>
34
34
----
35
35
<1> This query returns the top 3 VMs waiting for I/O at every given moment over a six-minute time period.
36
36
@@ -48,7 +48,7 @@ Returns the total amount of traffic transmitted (in bytes) on the virtual machin
48
48
.Example network traffic query
49
49
[source,promql]
50
50
----
51
-
topk(3, sum by (name, namespace) (round(irate(kubevirt_vmi_network_receive_bytes_total[6m]), 0.1)) + sum by (name, namespace) (round(irate(kubevirt_vmi_network_transmit_bytes_total[6m]) , 0.1))) > 0 <1>
51
+
topk(3, sum by (name, namespace) (rate(kubevirt_vmi_network_receive_bytes_total[6m])) + sum by (name, namespace) (rate(kubevirt_vmi_network_transmit_bytes_total[6m]))) > 0 <1>
52
52
----
53
53
<1> This query returns the top 3 VMs transmitting the most network traffic at every given moment over a six-minute time period.
54
54
@@ -69,8 +69,7 @@ Returns the total amount of storage writes (in bytes) of the virtual machine's s
69
69
.Example storage-related traffic query
70
70
[source,promql]
71
71
----
72
-
topk(3, sum by (name, namespace) (round(irate(kubevirt_vmi_storage_read_traffic_bytes_total[6m]), 0.1))
73
-
+ sum by (name, namespace) (round(irate(kubevirt_vmi_storage_write_traffic_bytes_total[6m]), 0.1))) > 0 <1>
72
+
topk(3, sum by (name, namespace) (rate(kubevirt_vmi_storage_read_traffic_bytes_total[6m])) + sum by (name, namespace) (rate(kubevirt_vmi_storage_write_traffic_bytes_total[6m]))) > 0 <1>
74
73
----
75
74
<1> This query returns the top 3 VMs performing the most storage traffic at every given moment over a six-minute time period.
76
75
@@ -88,8 +87,7 @@ Returns the amount of read I/O operations the virtual machine is performing per
88
87
.Example I/O performance query
89
88
[source,promql]
90
89
----
91
-
topk(3, sum by (name, namespace) (round(irate(kubevirt_vmi_storage_iops_read_total[6m]), 0.1))
92
-
+ sum by (name, namespace) (round(irate(kubevirt_vmi_storage_iops_write_total[6m]) , 0.1))) > 0 <1>
90
+
topk(3, sum by (name, namespace) (rate(kubevirt_vmi_storage_iops_read_total[6m])) + sum by (name, namespace) (rate(kubevirt_vmi_storage_iops_write_total[6m]))) > 0 <1>
93
91
----
94
92
<1> This query returns the top 3 VMs performing the most I/O operations per second at every given moment over a six-minute time period.
95
93
@@ -107,8 +105,7 @@ Returns the total amount (in bytes) of memory the virtual guest is swapping out.
107
105
.Example memory swapping query
108
106
[source,promql]
109
107
----
110
-
topk(3, sum by (name, namespace) (round(irate(kubevirt_vmi_memory_swap_in_traffic_bytes_total[6m]), 0.1))
111
-
+ sum by (name, namespace) (round(irate(kubevirt_vmi_memory_swap_out_traffic_bytes_total[6m]), 0.1))) > 0 <1>
108
+
topk(3, sum by (name, namespace) (rate(kubevirt_vmi_memory_swap_in_traffic_bytes_total[6m])) + sum by (name, namespace) (rate(kubevirt_vmi_memory_swap_out_traffic_bytes_total[6m]))) > 0 <1>
112
109
----
113
110
<1> This query returns the top 3 VMs where the guest is performing the most memory swapping at every given moment over a six-minute time period.
0 commit comments