about summary refs log tree commit diff
path: root/modules/services/grafana
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/services/grafana/default.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/services/grafana/default.nix b/modules/services/grafana/default.nix
index 84bd577..ded6930 100644
--- a/modules/services/grafana/default.nix
+++ b/modules/services/grafana/default.nix
@@ -24,12 +24,19 @@ in
       };
       provision = {
         enable = true;
-        datasources.settings.datasources = [{
-          name = "prometheus";
-          type = "prometheus";
-          isDefault = true;
-          url = "http://localhost:9090";
-        }];
+        datasources.settings.datasources = [
+          {
+            name = "prometheus";
+            type = "prometheus";
+            isDefault = true;
+            url = "http://localhost:9090";
+          }
+          {
+            name = "loki";
+            url = "http://192.168.6.40:3100";
+            type = "loki";
+          }
+        ];
         dashboards.settings.providers = [{
           disableDeletion = true;
           options.path = ./dashboards;