first sync
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 5m16s

This commit is contained in:
2024-12-26 19:11:34 +01:00
parent be8109e7c6
commit b46894e48b
9 changed files with 3324 additions and 24 deletions

22
prometheus/alert.rules Normal file
View File

@ -0,0 +1,22 @@
groups:
- name: example
rules:
# Alert for any instance that is unreachable for >2 minutes.
- alert: service_down
expr: up == 0
for: 2m
labels:
severity: page
annotations:
summary: "Instance {{ $labels.instance }} down"
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes."
- alert: high_load
expr: node_load1 > 0.5
for: 2m
labels:
severity: page
annotations:
summary: "Instance {{ $labels.instance }} under high load"
description: "{{ $labels.instance }} of job {{ $labels.job }} is under high load."