From 8e714a6a68b4c945751579df6b15084f3c2dc339 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 28 Feb 2022 19:41:54 -0800 Subject: grafana: setup provisioning correctly --- hosts/common/server/grafana.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'hosts') diff --git a/hosts/common/server/grafana.nix b/hosts/common/server/grafana.nix index 76c1ecb..2f8e9be 100644 --- a/hosts/common/server/grafana.nix +++ b/hosts/common/server/grafana.nix @@ -7,11 +7,14 @@ addr = ""; security.adminUser = "fcuny"; - provision.datasources = [{ - name = "prometheus"; - isDefault = true; - type = "prometheus"; - url = "http://localhost:9090"; - }]; + provision = { + enable = true; + datasources = [{ + name = "prometheus"; + type = "prometheus"; + isDefault = true; + url = "http://localhost:9090"; + }]; + }; }; } -- cgit 1.4.1