saner cpu load alerts

This commit is contained in:
nd 2021-07-05 21:06:08 +02:00
parent ca4717ef08
commit 7282e86483
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -98,8 +98,7 @@ prometheus_agent:
alert: CPULoad
enabled: True
expr: |
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 }}"})
node_load5{job="node", instance="{{ inventory_hostname }}"} > count without(cpu, mode) (node_cpu_seconds_total{mode="idle", job="node", instance="{{ inventory_hostname }}"}) * 10
for: 5m
labels:
severity: warning
@ -111,8 +110,7 @@ prometheus_agent:
alert: CPULoad
enabled: True
expr: |
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 }}"})
node_load5{job="node", instance="{{ inventory_hostname }}"} > count without(cpu, mode) (node_cpu_seconds_total{mode="idle", job="node", instance="{{ inventory_hostname }}"}) * 20
for: 5m
labels:
severity: critical