fix cpu usage alert labels
This commit is contained in:
parent
22329ccb47
commit
dad14f3637
1 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ prometheus_agent:
|
|||
alert: CPULoad
|
||||
enabled: True
|
||||
expr: |
|
||||
100 - avg(irate(node_cpu_seconds_total{mode="idle", job="node", instance="{{ inventory_hostname }}"}[5m])) * 100 > 80 or
|
||||
100 - avg without (cpu) (irate(node_cpu_seconds_total{mode="idle", job="node", instance="{{ inventory_hostname }}"}[5m])) * 100 > 80 or
|
||||
node_load5{job="node", instance="{{ inventory_hostname }}"} > count without(cpu, mode) (node_cpu_seconds_total{mode="idle", job="node", instance="{{ inventory_hostname }}"})
|
||||
for: 5m
|
||||
labels:
|
||||
|
|
@ -111,7 +111,7 @@ prometheus_agent:
|
|||
alert: CPULoad
|
||||
enabled: True
|
||||
expr: |
|
||||
100 - avg(irate(node_cpu_seconds_total{mode="idle", job="node", instance="{{ inventory_hostname }}"}[5m])) * 100 > 80 or
|
||||
100 - avg without (cpu) (irate(node_cpu_seconds_total{mode="idle", job="node", instance="{{ inventory_hostname }}"}[5m])) * 100 > 80 or
|
||||
node_load5{job="node", instance="{{ inventory_hostname }}"} > count without(cpu, mode) (node_cpu_seconds_total{mode="idle", job="node", instance="{{ inventory_hostname }}"})
|
||||
for: 5m
|
||||
labels:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue