mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-27 14:39:53 -08:00
15 lines
483 B
YAML
15 lines
483 B
YAML
groups:
|
|
- name: example-node-exporter-rules
|
|
rules:
|
|
# The count of CPUs per node, useful for getting CPU time as a percent of total.
|
|
- record: instance:node_cpus:count
|
|
expr: count(node_cpu{mode="idle"}) without (cpu,mode)
|
|
|
|
# CPU in use by CPU.
|
|
- record: instance_cpu:node_cpu_not_idle:rate5m
|
|
expr: sum(rate(node_cpu{mode!="idle"}[5m])) without (mode)
|
|
|
|
# CPU in use by mode.
|
|
- record: instance_mode:node_cpu:rate5m
|
|
expr: sum(rate(node_cpu[5m])) without (cpu)
|