Last active
October 22, 2022 13:28
-
-
Save ivanahuckova/f5723cf5c44f83a946e8443939f2e390 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
groups: | |
- name: AllInstances | |
rules: | |
- alert: InstanceDown | |
# Condition for alerting | |
expr: up == 0 | |
for: 1m | |
# Annotation - additional informational labels to store more information | |
annotations: | |
title: 'Instance {{ $labels.instance }} down' | |
description: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 1 minute.' | |
# Labels - additional labels to be attached to the alert | |
labels: | |
severity: 'critical' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment