alertmanager: Add inhibit rules for InstanceDown alerts

This commit is contained in:
SebastianStork 2026-03-10 20:15:51 +01:00
parent 67f8f1689a
commit 2c8ecb9c7b
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -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" ];
};
};
};