diff options
| author | Valentin <valentin@fricklerhandwerk.de> | 2025-11-12 22:11:01 +0100 |
|---|---|---|
| committer | Valentin <valentin@fricklerhandwerk.de> | 2025-11-20 16:36:45 +0100 |
| commit | 14cfede293410bcf60bb096a410257fce2d20886 (patch) | |
| tree | 40113f9776a10e99d38acf39f0e9a8924795dcdd /tharos/grafana.nix | |
| parent | edd5c01698f321f530a8656d3678e39a3a1e98c2 (diff) | |
Überwachung der Systemlast
Diffstat (limited to 'tharos/grafana.nix')
| -rw-r--r-- | tharos/grafana.nix | 20 |
1 files changed, 20 insertions, 0 deletions
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 = { |
