From 2c8ecb9c7b0513e8735a16c59cb55b1c8925e6e2 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Tue, 10 Mar 2026 20:15:51 +0100 Subject: [PATCH] alertmanager: Add inhibit rules for InstanceDown alerts --- modules/nixos/services/alertmanager.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/nixos/services/alertmanager.nix b/modules/nixos/services/alertmanager.nix index 88bb9b7..f483fae 100644 --- a/modules/nixos/services/alertmanager.nix +++ b/modules/nixos/services/alertmanager.nix @@ -63,6 +63,14 @@ in name = "ntfy"; webhook_configs = lib.singleton { url = "http://localhost:${toString cfg.ntfyBridgePort}/hook"; }; }; + inhibit_rules = lib.singleton { + source_matchers = [ + ''alertname="InstanceDown"'' + ''job="node"'' + ]; + target_matchers = lib.singleton ''alertname!="InstanceDown"''; + equal = [ "instance" ]; + }; }; };