-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgeneric.rules.yml
More file actions
33 lines (29 loc) · 1.07 KB
/
Copy pathgeneric.rules.yml
File metadata and controls
33 lines (29 loc) · 1.07 KB
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
31
32
33
---
groups:
- name: generic.rules
rules:
- alert: Device offline
expr: up{offline!="true"} == 0
for: 10m
annotations:
summary: "Device {{ $labels.node_name }} down (exporter: {{ $labels.job }})"
- alert: High latency
expr: probe_icmp_duration_seconds{phase="rtt"} *1000 > 100
for: 10m
annotations:
summary: "Endpoint {{ $labels.node_name }} has high latency: {{ $value }}"
- alert: High packet loss
expr: (1 - avg_over_time(probe_success[15m])) * 100 > 5
for: 10m
annotations:
summary: "Endpoint {{ $labels.node_name }} has high packet loss: {{ $value }}"
- alert: Non running containers
expr: engine_daemon_container_states_containers{state!="running"} > 0
for: 5m
annotations:
summary: "There are some containers not running, amount: {{ $value }}"
- alert: Probe Failed
expr: probe_success != 1
for: 10m
annotations:
summary: "Endpoint {{ $labels.node_name }} is unreachable"