mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
mixin: Fix cpu usage graph
Signed-off-by: Johannes Ziemke <github@5pi.de>
This commit is contained in:
parent
b9d0932179
commit
ebfbe0f56e
|
@ -66,17 +66,12 @@ local table = grafana70.panel.table;
|
|||
datasource='$datasource',
|
||||
span=6,
|
||||
format='percentunit',
|
||||
max=1,
|
||||
min=0,
|
||||
stack=true,
|
||||
)
|
||||
.addTarget(prometheus.target(
|
||||
|||
|
||||
(
|
||||
(1 - sum without (mode) (rate(node_cpu_seconds_total{%(nodeExporterSelector)s, mode=~"idle|iowait|steal", instance="$instance", %(clusterLabel)s="$cluster"}[$__rate_interval])))
|
||||
/ ignoring(cpu) group_left
|
||||
count without (cpu, mode) (node_cpu_seconds_total{%(nodeExporterSelector)s, mode="idle", instance="$instance", %(clusterLabel)s="$cluster"})
|
||||
)
|
||||
(1 - sum without (mode) (rate(node_cpu_seconds_total{%(nodeExporterSelector)s, mode=~"idle|iowait|steal", instance="$instance", %(clusterLabel)s="$cluster"}[$__rate_interval])))
|
||||
||| % config,
|
||||
legendFormat='{{cpu}}',
|
||||
intervalFactor=5,
|
||||
|
|
Loading…
Reference in a new issue