diff options
author | Franck Cuny <franck@fcuny.net> | 2023-04-23 13:19:45 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-04-23 14:25:16 -0700 |
commit | ee5b2ad642a1a5d9ef35cd88e2c4c8343b91a0b2 (patch) | |
tree | 695dc62d429e23de0173b3535ee0c1552c21a883 /modules/services | |
parent | modules/services: add loki and promtail (diff) | |
download | world-ee5b2ad642a1a5d9ef35cd88e2c4c8343b91a0b2.tar.gz |
modules/grafana: add loki as a source to grafana
Diffstat (limited to 'modules/services')
-rw-r--r-- | modules/services/grafana/default.nix | 19 |
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; |