Update example rules
* Remove Prometheus 1.x example file. * Update CPU rules for 0.16.0. Signed-off-by: Ben Kochie <superq@gmail.com>pull/948/head
parent
b8918c7d32
commit
628b2db5bc
|
@ -2,13 +2,13 @@ groups:
|
||||||
- name: example-node-exporter-rules
|
- name: example-node-exporter-rules
|
||||||
rules:
|
rules:
|
||||||
# The count of CPUs per node, useful for getting CPU time as a percent of total.
|
# The count of CPUs per node, useful for getting CPU time as a percent of total.
|
||||||
- record: instance:node_cpus:count
|
- record: instance:node_cpu_seconds_total:count
|
||||||
expr: count(node_cpu{mode="idle"}) without (cpu,mode)
|
expr: count(node_cpu_seconds_total{mode="idle"}) without (cpu,mode)
|
||||||
|
|
||||||
# CPU in use by CPU.
|
# CPU in use by CPU.
|
||||||
- record: instance_cpu:node_cpu_not_idle:rate5m
|
- record: instance_cpu:node_cpu_seconds_total:rate5m
|
||||||
expr: sum(rate(node_cpu{mode!="idle"}[5m])) without (mode)
|
expr: sum(rate(node_cpu_seconds_total{mode!="idle"}[5m])) without (mode)
|
||||||
|
|
||||||
# CPU in use by mode.
|
# CPU in use by mode.
|
||||||
- record: instance_mode:node_cpu:rate5m
|
- record: instance_mode:node_cpu_seconds_total:rate5m
|
||||||
expr: sum(rate(node_cpu[5m])) without (cpu)
|
expr: sum(rate(node_cpu_seconds_total[5m])) without (cpu)
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
# 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 New Issue