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
add recording rules with new naming that follow the names linter and
best practices, and deprecate old names
Signed-off-by: alitman <alitman@alitman-thinkpadp1gen7.raanaii.csb>
Co-authored-by: Aviv Litman <alitman@alitman-thinkpadp1gen7.raanaii.csb>
Copy file name to clipboardExpand all lines: docs/metrics.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,11 @@
11
11
| kubevirt_hco_single_stack_ipv6 | Metric | Gauge | Indicates whether the underlying cluster is single stack IPv6 (1) or not (0) |
12
12
| kubevirt_hco_system_health_status | Metric | Gauge | Indicates whether the system health status is healthy (0), warning (1), or error (2), by aggregating the conditions of HCO and its secondary resources |
13
13
| kubevirt_hco_unsafe_modifications | Metric | Gauge | Count of unsafe modifications in the HyperConverged annotations |
14
-
| cluster:vmi_request_cpu_cores:sum| Recording rule | Gauge | Sum of CPU core requests for all running virt-launcher VMIs across the entire Kubevirt cluster |
14
+
| cluster:kubevirt_hco_operator_health_status:count| Recording rule | Gauge | Indicates whether HCO and its secondary resources health status is healthy (0), warning (1) or critical (2), based both on the firing alerts that impact the operator health, and on kubevirt_hco_system_health_status metric |
15
+
| cluster:kubevirt_hco_vmi_request_cpu_cores:sum| Recording rule | Gauge | Sum of CPU core requests for all running virt-launcher VMIs across the entire KubeVirt cluster |
16
+
| cluster:vmi_request_cpu_cores:sum| Recording rule | Gauge |[Deprecated] Sum of CPU core requests for all running virt-launcher VMIs across the entire KubeVirt cluster |
| kubevirt_hyperconverged_operator_health_status | Recording rule | Gauge | Indicates whether HCO and its secondary resources health status is healthy (0), warning (1) or critical (2), based both on the firing alerts that impact the operator health, and on kubevirt_hco_system_health_status metric |
18
+
| kubevirt_hyperconverged_operator_health_status | Recording rule | Gauge |[Deprecated]Indicates whether HCO and its secondary resources health status is healthy (0), warning (1) or critical (2), based both on the firing alerts that impact the operator health, and on kubevirt_hco_system_health_status metric |
Help: "[Deprecated] Indicates whether HCO and its secondary resources health status is healthy (0), warning (1) or critical (2), based both on the firing alerts that impact the operator health, and on kubevirt_hco_system_health_status metric",
Help: "Indicates whether HCO and its secondary resources health status is healthy (0), warning (1) or critical (2), based both on the firing alerts that impact the operator health, and on kubevirt_hco_system_health_status metric",
24
32
},
25
33
MetricType: operatormetrics.GaugeType,
@@ -28,7 +36,15 @@ var operatorRecordingRules = []operatorrules.RecordingRule{
28
36
{
29
37
MetricsOpts: operatormetrics.MetricOpts{
30
38
Name: "cluster:vmi_request_cpu_cores:sum",
31
-
Help: "Sum of CPU core requests for all running virt-launcher VMIs across the entire Kubevirt cluster",
39
+
Help: "[Deprecated] Sum of CPU core requests for all running virt-launcher VMIs across the entire KubeVirt cluster",
40
+
},
41
+
MetricType: operatormetrics.GaugeType,
42
+
Expr: intstr.FromString(`sum(kube_pod_container_resource_requests{resource="cpu"} and on (pod) kube_pod_status_phase{phase="Running"} * on (pod) group_left kube_pod_labels{ label_kubevirt_io="virt-launcher"} > 0)`),
Help: "Sum of CPU core requests for all running virt-launcher VMIs across the entire KubeVirt cluster",
32
48
},
33
49
MetricType: operatormetrics.GaugeType,
34
50
Expr: intstr.FromString(`sum(kube_pod_container_resource_requests{resource="cpu"} and on (pod) kube_pod_status_phase{phase="Running"} * on (pod) group_left kube_pod_labels{ label_kubevirt_io="virt-launcher"} > 0)`),
0 commit comments