From 14cfede293410bcf60bb096a410257fce2d20886 Mon Sep 17 00:00:00 2001 From: Valentin Date: Wed, 12 Nov 2025 22:11:01 +0100 Subject: =?UTF-8?q?=C3=9Cberwachung=20der=20Systemlast?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tharos/grafana.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tharos/grafana.nix') diff --git a/tharos/grafana.nix b/tharos/grafana.nix index fa2259e..9ad5ecc 100644 --- a/tharos/grafana.nix +++ b/tharos/grafana.nix @@ -36,6 +36,23 @@ org_role = "Viewer"; }; }; + provision = { + enable = true; + datasources.settings = { + prune = true; + datasources = [ + { + name = "Prometheus"; + type = "prometheus"; + access = "proxy"; + url = "http://localhost:${toString config.services.prometheus.port}"; + } + ]; + }; + dashboards.settings.providers = [ + { options.path = ./dashboards; } + ]; + }; }; services.postgresql = { enable = true; @@ -68,6 +85,9 @@ domain = lib.mkForce "grafana.localhost"; root_url = lib.mkForce "http://${grafana.domain}:${toString grafana.port}"; }; + settings."auth.anonymous" = { + org_role = lib.mkForce "Admin"; + }; }; services.caddy.virtualHosts = { -- cgit v1.2.3