-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtests.yaml
38 lines (37 loc) · 1.37 KB
/
tests.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
27
28
29
30
31
32
33
34
35
36
37
38
# yamllint disable rule:line-length
---
rule_files:
- prometheus_alerts.yaml
tests:
- interval: 1m
input_series:
- series: 'probe_success{job="blackbox-exporter", instance="test"}'
values: '0+0x5'
alert_rule_test:
- eval_time: 5m
alertname: BlackboxProbeFailed
exp_alerts:
- exp_labels:
job: blackbox-exporter
instance: test
severity: critical
exp_annotations:
summary: 'Probe has failed for the past 1m interval.'
description: 'The probe failed for the instance test.'
dashboard_url: 'https://grafana.com/d/blackbox-exporter-j4da/blackbox-exporter?instance=test'
- interval: 1d
input_series:
- series: 'probe_success{job="blackbox-exporter", instance="test"}'
values: '0+0x30'
alert_rule_test:
- eval_time: 10d
alertname: BlackboxLowUptime30d
exp_alerts:
- exp_labels:
job: blackbox-exporter
instance: test
severity: info
exp_annotations:
summary: 'Probe uptime is lower than 99.9% for the last 30 days.'
description: 'The probe has a lower uptime than 99.9% the last 30 days for the instance test.'
dashboard_url: 'https://grafana.com/d/blackbox-exporter-j4da/blackbox-exporter?instance=test'