Add alertmanager rules
This commit is contained in:
parent
dc856e3980
commit
f31aef9b20
11
hosts/monitoring/alertmanager-rules.yml
Normal file
11
hosts/monitoring/alertmanager-rules.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
groups:
|
||||||
|
- name: alert.rules
|
||||||
|
rules:
|
||||||
|
- alert: InstanceDown
|
||||||
|
expr: up{job="node-exporter"} == 0
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
annotations:
|
||||||
|
summary: "Endpoint {{ $labels.instance }} down"
|
||||||
|
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."
|
Loading…
Reference in New Issue
Block a user