mixin: Cheaper calculation for instance:node_num_cpu:sum
Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
This commit is contained in:
parent
4b9d7b63e6
commit
fa9926c4eb
|
@ -9,9 +9,7 @@
|
||||||
record: 'instance:node_num_cpu:sum',
|
record: 'instance:node_num_cpu:sum',
|
||||||
expr: |||
|
expr: |||
|
||||||
count without (cpu) (
|
count without (cpu) (
|
||||||
count without (mode) (
|
node_cpu_seconds_total{%(nodeExporterSelector)s,mode="idle"}
|
||||||
node_cpu_seconds_total{%(nodeExporterSelector)s}
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
||| % $._config,
|
||| % $._config,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue