mixin: Cheaper calculation for instance:node_num_cpu:sum

Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
This commit is contained in:
Johannes 'fish' Ziemke 2021-09-02 15:06:50 +02:00
parent 4b9d7b63e6
commit fa9926c4eb

View file

@ -9,9 +9,7 @@
record: 'instance:node_num_cpu:sum',
expr: |||
count without (cpu) (
count without (mode) (
node_cpu_seconds_total{%(nodeExporterSelector)s}
)
node_cpu_seconds_total{%(nodeExporterSelector)s,mode="idle"}
)
||| % $._config,
},