mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-24 22:06:49 +01:00
Add a CPU in-use recording example.
Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
628b2db5bc
commit
f00f3db08b
@ -12,3 +12,7 @@ groups:
|
|||||||
# CPU in use by mode.
|
# CPU in use by mode.
|
||||||
- record: instance_mode:node_cpu_seconds_total:rate5m
|
- record: instance_mode:node_cpu_seconds_total:rate5m
|
||||||
expr: sum(rate(node_cpu_seconds_total[5m])) without (cpu)
|
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_total:rate5m{mode!="idle"}) / instance:node_cpu_seconds_total:count
|
||||||
|
Loading…
Reference in New Issue
Block a user