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 be1d739b40
commit e4a7fa8764
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -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;
}
];
};