From 39c9889a58a0a3994884874c6b1147900b66fbf1 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Sat, 24 Feb 2024 06:59:53 +0100 Subject: [PATCH] Fix grafana notifier options --- hosts/nixos/lapetus/services/grafana.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hosts/nixos/lapetus/services/grafana.nix b/hosts/nixos/lapetus/services/grafana.nix index 04cdcc1..4efc490 100644 --- a/hosts/nixos/lapetus/services/grafana.nix +++ b/hosts/nixos/lapetus/services/grafana.nix @@ -33,14 +33,17 @@ in # {{{ Provisoning provision = { enable = true; - notifiers = { - email.type = "email"; - - discord = { + notifiers = [ + { + name = "email"; + type = "email"; + } + { + name = "discord"; type = "discord"; settings.webhook_url = secret "grafana_discord_webhook"; - }; - }; + } + ]; datasources.settings.datasources = [{ name = "Prometheus";