From a5b1b4637f3311b660be798a60f5771e125c57ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 6 Aug 2023 00:11:16 +0300 Subject: [PATCH] grafana/prometheus provisioning --- hosts/vno1-oh2/configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/vno1-oh2/configuration.nix b/hosts/vno1-oh2/configuration.nix index 8627a76..6cb0863 100644 --- a/hosts/vno1-oh2/configuration.nix +++ b/hosts/vno1-oh2/configuration.nix @@ -111,6 +111,18 @@ grafana = { enable = true; + provision = { + enable = true; + datasources.settings = { + apiVersion = 1; + datasources = [{ + name = "Prometheus"; + type = "prometheus"; + access = "proxy"; + url = "http://127.0.0.1:${toString config.services.prometheus.port}"; + }]; + }; + }; settings = { server = { # TODO tailscale service?