Browse Source

Added load alert for OSS

pull/14/head
Egon Rijpkema 2 years ago
parent
commit
0e57aa26b0
  1. 16
      roles/prom_server/templates/etc/alerting.rules

16
roles/prom_server/templates/etc/alerting.rules

@ -169,6 +169,22 @@ groups: @@ -169,6 +169,22 @@ groups:
annotations:
description: '{{ $labels.instance }}: Has high load.'
summary: '{{ $labels.instance }} has high load.'
- alert: LoadOSS
expr: 100*(1-avg(rate(node_cpu_seconds_total{instance="pg-oss01.hpc.local:9100",job="node",mode="idle"}[5m]))) > 75
for: 10m
labels:
severity: page
annotations:
description: '{{ $labels.instance }}: Has high load.'
summary: '{{ $labels.instance }} has high load.'
- alert: LoadOSS
expr: 100*(1-avg(rate(node_cpu_seconds_total{instance="pg-oss02.hpc.local:9100",job="node",mode="idle"}[5m]))) > 75
for: 10m
labels:
severity: page
annotations:
description: '{{ $labels.instance }}: Has high load.'
summary: '{{ $labels.instance }} has high load.'
- alert: HighMemUsage
# Less than one gibibyte free
expr: node_memory_MemAvailable_bytes{env="pg-interactive"} < 2^30

Loading…
Cancel
Save