diff --git a/configuration/services/metrics/grafana.nix b/configuration/services/metrics/grafana.nix index e597cff..d14b908 100644 --- a/configuration/services/metrics/grafana.nix +++ b/configuration/services/metrics/grafana.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ pkgs, config, ... }: let domain = "metrics.${config.services.nginx.domain}"; in @@ -28,6 +28,10 @@ in }; }; + declarativePlugins = [ + pkgs.grafanaPlugins.victoriametrics-metrics-datasource + ]; + provision = { enable = true; @@ -35,7 +39,9 @@ in { name = "Victoriametrics - tlater.net"; url = "http://localhost:8428"; - type = "prometheus"; + type = "victoriametrics-metrics-datasource"; + access = "proxy"; + isDefault = true; } ]; };