From ea576cda8d891428378d124ce6e1e2b350d1bfb5 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Sat, 24 Feb 2024 07:10:49 +0100 Subject: [PATCH] Update from grafana notifiers to alerts --- hosts/nixos/lapetus/services/grafana.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/hosts/nixos/lapetus/services/grafana.nix b/hosts/nixos/lapetus/services/grafana.nix index 01e5e3f..c2e9deb 100644 --- a/hosts/nixos/lapetus/services/grafana.nix +++ b/hosts/nixos/lapetus/services/grafana.nix @@ -33,17 +33,14 @@ in # {{{ Provisoning provision = { enable = true; - notifiers = [ + alerting.contactPoints.settings.contactPoints = [ + { name = "email"; } { - uid = "email"; - name = "email"; - type = "email"; - } - { - uid = "discord"; name = "discord"; - type = "discord"; - settings.webhook_url = secret "grafana_discord_webhook"; + webhook_configs = [{ + send_resolved = true; + url = secret "grafana_discord_webhook"; + }]; } ];