mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 14:39:40 -08:00
14 lines
362 B
YAML
14 lines
362 B
YAML
|
# This is the rules file.
|
||
|
|
||
|
groups:
|
||
|
- name: example
|
||
|
rules:
|
||
|
- alert: InstanceDown
|
||
|
expr: up == 0
|
||
|
for: 5m
|
||
|
labels:
|
||
|
severity: page
|
||
|
annotations:
|
||
|
summary: "Instance {{ $labels.instance }} down"
|
||
|
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."
|