From 1ab124838fea4d7468710a70f32de91c06570090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Wed, 22 Nov 2023 19:35:01 +0100 Subject: [PATCH] Node: Missing cluster label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto Kröpke --- rules/node.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/node.libsonnet b/rules/node.libsonnet index e4e949bd7..453e3720b 100644 --- a/rules/node.libsonnet +++ b/rules/node.libsonnet @@ -32,8 +32,8 @@ expr: ||| count by (%(clusterLabel)s, node) ( node_cpu_seconds_total{mode="idle",%(nodeExporterSelector)s} - * on (namespace, %(podLabel)s) group_left(node) - topk by(namespace, %(podLabel)s) (1, node_namespace_pod:kube_pod_info:) + * on (%(clusterLabel)s, namespace, %(podLabel)s) group_left(node) + topk by(%(clusterLabel)s, namespace, %(podLabel)s) (1, node_namespace_pod:kube_pod_info:) ) ||| % $._config, },