mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 14:19:08 +01:00
alertmanager: Add inhibit rules for InstanceDown alerts
This commit is contained in:
parent
67f8f1689a
commit
2c8ecb9c7b
1 changed files with 8 additions and 0 deletions
|
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue