feat: add service monitoring alerts for Gitea, Postfix, Dovecot, OpenLDAP, and WireGuard, and consolidate alerting rules in Grafana

This commit is contained in:
2025-05-31 15:53:26 +02:00
parent 94ee6bc9a4
commit 89b2a1cf45
5 changed files with 364 additions and 275 deletions

View File

@@ -0,0 +1,16 @@
{ lib, pkgs, config, ... }:
let
serviceDownAlertRules = (import ./service_down.nix { inherit lib pkgs config; }).grafanaAlertRuleDefinitions;
allServiceRules = serviceDownAlertRules;
in
{
services.grafana.provision.alerting.rules.settings.groups = [
{
name = "Service Alerts";
folder = "Service Monitoring";
interval = "1m";
rules = allServiceRules;
}
];
}