14 lines
363 B
Plaintext
14 lines
363 B
Plaintext
|
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."
|