feat(grafana): Use the victoriametrics metrics plugin

This commit is contained in:
Tristan Daniël Maat 2025-02-28 01:47:58 +08:00
parent e079ecbe72
commit b4757f440d
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

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