mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-26 06:04:20 -08:00
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',
|
||||
expr: |||
|
||||
count without (cpu) (
|
||||
count without (mode) (
|
||||
node_cpu_seconds_total{%(nodeExporterSelector)s}
|
||||
)
|
||||
node_cpu_seconds_total{%(nodeExporterSelector)s,mode="idle"}
|
||||
)
|
||||
||| % $._config,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue