mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-23 17:35:38 +02:00
service/alertmanager: add notification if silence is added
This commit is contained in:
parent
ec25cb17fa
commit
728cf13897
1 changed files with 7 additions and 0 deletions
|
@ -128,6 +128,13 @@ in
|
|||
}
|
||||
];
|
||||
|
||||
my.services.prometheus.rules = {
|
||||
alerts_silences_changed = {
|
||||
condition = ''abs(delta(alertmanager_silences{state="active"}[1h])) >= 1'';
|
||||
description = "alertmanager: number of active silences has changed: {{$value}}";
|
||||
};
|
||||
};
|
||||
|
||||
my.services.nginx.virtualHosts = [
|
||||
{
|
||||
subdomain = "alerts";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue