about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-28 19:41:54 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-28 19:41:54 -0800
commit8e714a6a68b4c945751579df6b15084f3c2dc339 (patch)
tree44896a0f802e16d41effe3d719e2e44c6417f902
parentgrafana: fix (diff)
downloadworld-8e714a6a68b4c945751579df6b15084f3c2dc339.tar.gz
grafana: setup provisioning correctly
-rw-r--r--hosts/common/server/grafana.nix15
1 files changed, 9 insertions, 6 deletions
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";
+      }];
+    };
   };
 }