diff options
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 = { |
