-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathprometheus_alerts.yaml
More file actions
46 lines (46 loc) · 2.15 KB
/
Copy pathprometheus_alerts.yaml
File metadata and controls
46 lines (46 loc) · 2.15 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
34
35
36
37
38
39
40
41
42
43
44
45
46
"groups":
- "name": "blackbox-exporter.rules"
"rules":
- "alert": "BlackboxProbeFailed"
"annotations":
"dashboard_url": "https://grafana.com/d/blackbox-exporter-j4da/blackbox-exporter?var-instance={{ $labels.instance }}"
"description": "The probe failed for the instance {{ $labels.instance }}."
"summary": "Probe has failed for the past 1m interval."
"expr": |
probe_success{job="blackbox-exporter"} == 0
"for": "1m"
"labels":
"severity": "critical"
- "alert": "BlackboxLowUptime30d"
"annotations":
"dashboard_url": "https://grafana.com/d/blackbox-exporter-j4da/blackbox-exporter?var-instance={{ $labels.instance }}"
"description": "The probe has a lower uptime than 99.9% the last 30 days for the instance {{ $labels.instance }}."
"summary": "Probe uptime is lower than 99.9% for the last 30 days."
"expr": |
avg_over_time(probe_success{job="blackbox-exporter"}[30d]) * 100 < 99.900000000000006
"labels":
"severity": "info"
- "alert": "BlackboxSslCertificateWillExpireSoon"
"annotations":
"dashboard_url": "https://grafana.com/d/blackbox-exporter-j4da/blackbox-exporter?var-instance={{ $labels.instance }}"
"description": |
The SSL certificate of the instance {{ $labels.instance }} is expiring within 21 days.
Actual time left: {{ $value | humanizeDuration }}.
"summary": "SSL certificate will expire soon."
"expr": |
probe_ssl_earliest_cert_expiry{job="blackbox-exporter"} - time() < 21 * 24 * 3600
and
probe_ssl_earliest_cert_expiry{job="blackbox-exporter"} - time() > 0
"labels":
"severity": "warning"
- "alert": "BlackboxSslCertificateExpired"
"annotations":
"dashboard_url": "https://grafana.com/d/blackbox-exporter-j4da/blackbox-exporter?var-instance={{ $labels.instance }}"
"description": |
The SSL certificate of the instance {{ $labels.instance }} has expired.
Actual time left: {{ $value | humanizeDuration }}.
"summary": "SSL certificate has expired."
"expr": |
probe_ssl_earliest_cert_expiry{job="blackbox-exporter"} - time() < 0
"labels":
"severity": "warning"