Skip to content

Commit

Permalink
Adding alerting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
netboz committed Mar 18, 2024
1 parent c304035 commit a16eeaa
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docker/prometheus/etc/alert.rules
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit a16eeaa

Please sign in to comment.