From 8d22df82bdeb014ca94ef58211984c829a66ae3e Mon Sep 17 00:00:00 2001 From: K900 Date: Sun, 7 Jul 2024 17:13:12 +0300 Subject: [PATCH] Wire up Grafana to Alertmanager --- services/monitoring/lgtm/grafana.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/monitoring/lgtm/grafana.nix b/services/monitoring/lgtm/grafana.nix index 8fd2583..e567f65 100644 --- a/services/monitoring/lgtm/grafana.nix +++ b/services/monitoring/lgtm/grafana.nix @@ -92,6 +92,7 @@ in uid = "mimir"; access = "proxy"; url = "http://127.0.0.1:9009/prometheus"; + isDefault = true; } { name = "Loki"; @@ -100,6 +101,17 @@ in access = "proxy"; url = "http://127.0.0.1:9090/"; } + { + name = "Mimir Alertmanager"; + type = "alertmanager"; + uid = "mimir-alertmanager"; + access = "proxy"; + url = "http://127.0.0.1:9009/"; + jsonData = { + handleGrafanaManagedAlerts = true; + implementation = "mimir"; + }; + } ]; }; };