forked from VoIPGRID/opensips_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalerts.yaml
26 lines (24 loc) · 883 Bytes
/
alerts.yaml
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
groups:
- name: opensips-alerts
rules:
- alert: OpenSIPSExporterDown
expr: up{job="opensips"} == 0
for: 15m
labels:
severity: warning
annotations:
description: "The OpenSIPS exporter was unable to be scraped for the last 15m."
- alert: OpenSIPSDown
expr: opensips_up{job="opensips"} == 0
for: 3m
labels:
severity: critical
annotations:
description: "OpenSIPS on {{ $labels.instance }} did not respond to any queries on the Management Interface socket in the last 3m. This could mean the socket has died or the OpenSIPS process has died."
- alert: OpenSIPSRestarted
expr: opensips_core_uptime_seconds{job="opensips"} < 300
for: 1m
labels:
severity: warning
annotations:
description: "OpenSIPS on {{$labels.instance }} has been up for {{ $value }}s and has therefore likely been restarted."