From 736eacaac59566d98aba0e7498372f5664900b8f Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 20 Oct 2023 16:04:15 +0200 Subject: [PATCH] Enable proxy for Grafana too The alerts need to contact the slack endpoint, so we add the proxy environment variables to the grafana systemd service. Reviewed-By: Aleix Roca Nonell --- m/hut/monitoring.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/m/hut/monitoring.nix b/m/hut/monitoring.nix index d5d9d03..304590f 100644 --- a/m/hut/monitoring.nix +++ b/m/hut/monitoring.nix @@ -18,6 +18,9 @@ }; }; + # Make grafana alerts also use the proxy + systemd.services.grafana.environment = config.networking.proxy.envVars; + services.prometheus = { enable = true; port = 9001;