From ee5b2ad642a1a5d9ef35cd88e2c4c8343b91a0b2 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 23 Apr 2023 13:19:45 -0700 Subject: modules/grafana: add loki as a source to grafana --- modules/services/grafana/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'modules/services') 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; -- cgit 1.4.1