Add alert for mailserver going down
Jeremy Fleischman committed
Feb 21, 2025 at 00:26 UTC
3b17cd3fcd7e3d5d338b79dbcb41cf8c26fe41cf
1 file changed
+9
build/pluto/prometheus/exporters/blackbox.nix
+9
@@ -138,6 +138,15 @@ in
138
labels.severity = "warning";
139
annotations.summary = "Endpoint {{ $labels.instance }} is unreachable";
140
}
141
+ {
142
+ alert = "MxUnreachable";
143
+ expr = ''
144
+ probe_success{job="blackbox-smtp_starttls"} == 0
145
+ '';
146
+ for = "15m";
147
+ labels.severity = "warning";
148
+ annotations.summary = "Mail server {{ $labels.instance }} is unreachable";
149
+ }
150
];
151
}
152
];