mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-26 22:19:44 -08:00
Add an example rules file
Add some useful examples for CPU metrics.
This commit is contained in:
parent
276112c7ef
commit
d8e31f3ebd
8
example.rules
Normal file
8
example.rules
Normal file
|
@ -0,0 +1,8 @@
|
|||
# The count of CPUs per node, useful for getting CPU time as a percent of total.
|
||||
instance:node_cpus:count = count(node_cpu{mode="idle"}) without (cpu,mode)
|
||||
|
||||
# CPU in use by CPU.
|
||||
instance_cpu:node_cpu_not_idle:rate5m = sum rate(node_cpu{mode!="idle"}[5m])) without (mode)
|
||||
|
||||
# CPU in use by mode.
|
||||
instance_mode:node_cpu:rate5m = sum rate(node_cpu[5m])) without (cpu)
|
Loading…
Reference in a new issue