mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
Fix cpu utilization rule.
Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
eb3f922c50
commit
ec28a8e9d4
|
@ -14,5 +14,5 @@ groups:
|
|||
expr: sum(rate(node_cpu_seconds_total[5m])) without (cpu)
|
||||
|
||||
# CPU in use ratio.
|
||||
- record: instance:node_cpu_seconds_total_in_use:ratio
|
||||
expr: sum(instance_mode:node_cpu_seconds:rate5m{mode!="idle"}) / instance:node_cpus:count
|
||||
- record: instance:node_cpu_utilization:ratio
|
||||
expr: sum(instance_mode:node_cpu_seconds:rate5m{mode!="idle"}) without (mode) / instance:node_cpus:count
|
||||
|
|
Loading…
Reference in a new issue