Skip to content

Commit 5f8e3b8

Browse files
discordianfishoblitorum
authored andcommitted
mixin: Cheaper calculation for instance:node_num_cpu:sum
Signed-off-by: Johannes 'fish' Ziemke <[email protected]>
1 parent 6c8dc34 commit 5f8e3b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/node-mixin/rules/rules.libsonnet

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
record: 'instance:node_num_cpu:sum',
1010
expr: |||
1111
count without (cpu) (
12-
count without (mode) (
13-
node_cpu_seconds_total{%(nodeExporterSelector)s}
14-
)
12+
node_cpu_seconds_total{%(nodeExporterSelector)s,mode="idle"}
1513
)
1614
||| % $._config,
1715
},

0 commit comments

Comments
 (0)