diff --git a/kubernetes/main/apps/observability/kromgo/app/resources/config.yaml b/kubernetes/main/apps/observability/kromgo/app/resources/config.yaml index 5d2e0ad0f5beb..c7c0299bb60cd 100644 --- a/kubernetes/main/apps/observability/kromgo/app/resources/config.yaml +++ b/kubernetes/main/apps/observability/kromgo/app/resources/config.yaml @@ -28,7 +28,7 @@ metrics: title: Pods - name: cluster_cpu_usage - query: round(avg(instance:node_cpu_utilisation:rate5m) * 100, 0.1) + query: round(avg(instance:node_cpu_utilisation:rate5m{kubernetes_node!=""}) * 100, 0.1) suffix: "%" colors: - { color: "green", min: 0, max: 35 } @@ -37,7 +37,7 @@ metrics: title: CPU - name: cluster_memory_usage - query: round(sum(node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / sum(node_memory_MemTotal_bytes) * 100, 0.1) + query: round(sum(node_memory_MemTotal_bytes{kubernetes_node!=""} - node_memory_MemAvailable_bytes{kubernetes_node!=""}) / sum(node_memory_MemTotal_bytes{kubernetes_node!=""}) * 100, 0.1) suffix: "%" colors: - { color: green, min: 0, max: 35 } @@ -64,7 +64,7 @@ metrics: title: Age - name: cluster_uptime_days - query: round(avg(node_time_seconds - node_boot_time_seconds) / 86400) + query: round(avg(node_time_seconds{kubernetes_node!=""} - node_boot_time_seconds{kubernetes_node!=""}) / 86400) suffix: "d" colors: - { color: "green", min: 0, max: 180 }