@cryptotaxi247 / infra-1 / commits / 4ad2169d

Configure DomainExpiry alert, for domains that expire in <30d

Martin Weinelt committed Apr 14, 2023 at 18:33 UTC 4ad2169d15f6c9aeebd73bd12feb98ec6b5059ef
1 file changed +13
delft/eris.nix
+13
@@ -276,6 +276,19 @@ in
276 }
277 ];
278 }
279 +
280 + {
281 + name = "domain";
282 + rules = [
283 + {
284 + alert = "DomainExpiry";
285 + expr = "domain_expiry_days < 30";
286 + for = "1h";
287 + labels.severity = "warning";
288 + annotations.summary = "Domain {{ $labels.domain }} will expire in less than 30 days";
289 + }
290 + ];
291 + }
292 ];
293 })
294 ];