File tree 2 files changed +17
-1
lines changed
charts/prometheus-postgresql-alerts
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,19 @@ tests:
21
21
summary : " Exporter is down"
22
22
description : " SQL Exporter is down"
23
23
runbook_url : " https://qonto.github.io/database-monitoring-framework/0.0.0/runbooks/postgresql/SQLExporterDown"
24
+ - name : SQLExporterDown
25
+ interval : 1m
26
+ input_series :
27
+ - series : ' up{service="sql-exporter", target=""}'
28
+ values : ' 0x00'
29
+ alert_rule_test :
30
+ - alertname : SQLExporterDown
31
+ eval_time : 5m
32
+ exp_alerts :
33
+ - exp_labels :
34
+ service : sql-exporter
35
+ severity : critical
36
+ exp_annotations :
37
+ summary : " Exporter is down"
38
+ description : " SQL Exporter is down"
39
+ runbook_url : " https://qonto.github.io/database-monitoring-framework/0.0.0/runbooks/postgresql/SQLExporterDown"
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ rulesGroupName: postgresql.rules
11
11
rules :
12
12
13
13
SQLExporterDown :
14
- expr : absent(up{service="sql-exporter", target=""})
14
+ expr : absent(up{service="sql-exporter", target=""}) or up{service="sql-exporter", target=""} <1
15
15
for : 5m
16
16
labels :
17
17
severity : critical
You can’t perform that action at this time.
0 commit comments