prometheus: feed alert2muc directly not through alertmanager

This commit is contained in:
Astro 2022-12-17 01:14:28 +01:00
parent 3571d962fa
commit 917b38a895
1 changed files with 11 additions and 7 deletions

View File

@ -31,14 +31,14 @@
"group_wait" = "1m";
"group_interval" = "1m";
"repeat_interval" = "4h";
"receiver" = "xmpp";
# "receiver" = "xmpp";
};
"receivers" = [{
"name" = "xmpp";
"webhook_configs" = with config.services.prometheus.xmpp-alerts.settings; [{
"url" = "http://127.0.0.1:9022/";
}];
}];
# "receivers" = [{
# "name" = "xmpp";
# "webhook_configs" = with config.services.prometheus.xmpp-alerts.settings; [{
# "url" = "http://127.0.0.1:9022/";
# }];
# }];
};
};
@ -47,6 +47,10 @@
targets = [ "localhost:${toString config.services.prometheus.alertmanager.port}" ];
}];
path_prefix = "/alertmanager";
} {
static_configs = [{
targets = [ "localhost:9022" ];
}];
}];
rules = [