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',
|
datasource='$datasource',
|
||||||
span=6,
|
span=6,
|
||||||
format='percentunit',
|
format='percentunit',
|
||||||
max=1,
|
|
||||||
min=0,
|
min=0,
|
||||||
stack=true,
|
stack=true,
|
||||||
)
|
)
|
||||||
.addTarget(prometheus.target(
|
.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])))
|
||||||
(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"})
|
|
||||||
)
|
|
||||||
||| % config,
|
||| % config,
|
||||||
legendFormat='{{cpu}}',
|
legendFormat='{{cpu}}',
|
||||||
intervalFactor=5,
|
intervalFactor=5,
|
||||||
|
|
Loading…
Reference in New Issue