about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-04-23 13:19:45 -0700
committerFranck Cuny <franck@fcuny.net>2023-04-23 14:25:16 -0700
commitee5b2ad642a1a5d9ef35cd88e2c4c8343b91a0b2 (patch)
tree695dc62d429e23de0173b3535ee0c1552c21a883 /modules
parentmodules/services: add loki and promtail (diff)
downloadworld-ee5b2ad642a1a5d9ef35cd88e2c4c8343b91a0b2.tar.gz
modules/grafana: add loki as a source to grafana
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;