4f7ddec8fbfde16c206180712d05130b7bde0192
ocp/metrics.promql.md
... | ... | @@ -0,0 +1,58 @@ |
1 | +``` |
|
2 | +Example vCPU wait time query |
|
3 | +--- |
|
4 | + |
|
5 | +kubevirt_vmi_vcpu_wait_seconds |
|
6 | +Returns the wait time (in seconds) for a virtual machine’s vCPU. |
|
7 | + |
|
8 | + |
|
9 | +topk(3, sum by (name, namespace) (rate(kubevirt_vmi_vcpu_wait_seconds[6m]))) > 0 |
|
10 | + |
|
11 | + |
|
12 | +Example network traffic query |
|
13 | +--- |
|
14 | + |
|
15 | +kubevirt_vmi_network_receive_bytes_total |
|
16 | +Returns the total amount of traffic received (in bytes) on the virtual machine’s network. |
|
17 | + |
|
18 | +kubevirt_vmi_network_transmit_bytes_total |
|
19 | +Returns the total amount of traffic transmitted (in bytes) on the virtual machine’s network. |
|
20 | + |
|
21 | +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 |
|
22 | + |
|
23 | + |
|
24 | +Example storage-related traffic query |
|
25 | +--- |
|
26 | + |
|
27 | +kubevirt_vmi_storage_read_traffic_bytes_total |
|
28 | +Returns the total amount (in bytes) of the virtual machine’s storage-related traffic. |
|
29 | + |
|
30 | +kubevirt_vmi_storage_write_traffic_bytes_total |
|
31 | +Returns the total amount of storage writes (in bytes) of the virtual machine’s storage-related traffic. |
|
32 | + |
|
33 | +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 |
|
34 | + |
|
35 | + |
|
36 | +Example I/O performance query |
|
37 | +--- |
|
38 | + |
|
39 | +kubevirt_vmi_storage_iops_read_total |
|
40 | +Returns the amount of write I/O operations the virtual machine is performing per second. |
|
41 | + |
|
42 | +kubevirt_vmi_storage_iops_write_total |
|
43 | +Returns the amount of read I/O operations the virtual machine is performing per second. |
|
44 | + |
|
45 | +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 |
|
46 | + |
|
47 | + |
|
48 | +Example memory swapping query |
|
49 | +--- |
|
50 | + |
|
51 | +kubevirt_vmi_memory_swap_in_traffic_bytes_total |
|
52 | +Returns the total amount (in bytes) of memory the virtual guest is swapping in. |
|
53 | + |
|
54 | +kubevirt_vmi_memory_swap_out_traffic_bytes_total |
|
55 | +Returns the total amount (in bytes) of memory the virtual guest is swapping out. |
|
56 | + |
|
57 | +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]))) |
|
58 | +``` |
|
... | ... | \ No newline at end of file |