From 917b38a895b39e710641d0409ed3963ea64ba6d4 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 17 Dec 2022 01:14:28 +0100 Subject: [PATCH] prometheus: feed alert2muc directly not through alertmanager --- hosts/prometheus/default.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/hosts/prometheus/default.nix b/hosts/prometheus/default.nix index 9688b83c..75be9df1 100644 --- a/hosts/prometheus/default.nix +++ b/hosts/prometheus/default.nix @@ -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 = [