From 6f1286b314fdf16155928e92d436be0a107ce9c6 Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Fri, 3 Sep 2021 12:13:35 +0200 Subject: [PATCH] mixin: Drop mode label for num cpu metric Signed-off-by: Johannes 'fish' Ziemke --- docs/node-mixin/rules/rules.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/node-mixin/rules/rules.libsonnet b/docs/node-mixin/rules/rules.libsonnet index 878845f8..551810e7 100644 --- a/docs/node-mixin/rules/rules.libsonnet +++ b/docs/node-mixin/rules/rules.libsonnet @@ -8,7 +8,7 @@ // This rule gives the number of CPUs per node. record: 'instance:node_num_cpu:sum', expr: ||| - count without (cpu) ( + count without (cpu, mode) ( node_cpu_seconds_total{%(nodeExporterSelector)s,mode="idle"} ) ||| % $._config,