Browse Source

Update naming.

Signed-off-by: Ben Kochie <superq@gmail.com>
pull/948/head
Ben Kochie 7 years ago
parent
commit
eb3f922c50
Failed to extract signature
  1. 8
      example-rules.yml

8
example-rules.yml

@ -2,17 +2,17 @@ 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_cpu_seconds_total:count - record: instance:node_cpus:count
expr: count(node_cpu_seconds_total{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_seconds_total:rate5m - record: instance_cpu:node_cpu_seconds_not_idle:rate5m
expr: sum(rate(node_cpu_seconds_total{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_seconds_total:rate5m - record: instance_mode:node_cpu_seconds: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. # CPU in use ratio.
- record: instance:node_cpu_seconds_total_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 expr: sum(instance_mode:node_cpu_seconds:rate5m{mode!="idle"}) / instance:node_cpus:count

Loading…
Cancel
Save