-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalert.rules
More file actions
30 lines (27 loc) · 838 Bytes
/
Copy pathalert.rules
File metadata and controls
30 lines (27 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
groups:
- name: example
rules:
- alert: service_down
expr: up == 0
for: 30s
labels:
severity: page
annotations:
summary: "Instance {{ $labels.instance }} down"
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 30 seconds."
- alert: high_load
expr: node_load1 > 0.8
for: 30s
labels:
severity: page
annotations:
summary: "Instance {{ $labels.instance }} under high load"
description: "{{ $labels.instance }} of job {{ $labels.job }} is under high load."
- alert: site_down
expr: probe_success < 1
for: 30s
labels:
severity: page
annotations:
summary: "Site Down: {{$labels.instance}}"
description: "Site Down: {{$labels.instance}} for more than 30 seconds"