From 53881b8c14bd67a5e3808e1770b11bac3251011c Mon Sep 17 00:00:00 2001 From: David Wagner Date: Mon, 8 Jul 2024 17:16:19 +0200 Subject: [PATCH] loki: simplify config Reference https://grafana.com/docs/loki/latest/configure/examples/configuration-examples/#1-local-configuration-exampleyaml --- modules/loki.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/modules/loki.nix b/modules/loki.nix index f6bccf2..ca6b812 100644 --- a/modules/loki.nix +++ b/modules/loki.nix @@ -5,22 +5,17 @@ let # https://grafana.com/docs/loki/latest/configuration/examples/#complete-local-config configuration = { auth_enabled = false; - common.path_prefix = "/var/lib/loki"; server.http_listen_port = httpPort; server.log_level = "warn"; - ingester = { - lifecycler = { - address = "127.0.0.1"; - ring = { - kvstore.store = "inmemory"; - replication_factor = 1; - }; - final_sleep = "0s"; + common = { + ring = { + instance_addr = "127.0.0.1"; + kvstore.store = "inmemory"; }; - chunk_idle_period = "5m"; - chunk_retain_period = "30s"; + replication_factor = 1; + path_prefix = "/var/lib/loki"; }; schema_config = {