From c364bb15527212c0a1f9afe6761fae7427d03ae3 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 23 Sep 2024 22:24:39 +0200 Subject: [PATCH] dd --- docker-compose/loki/loki-config.yml.j2 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docker-compose/loki/loki-config.yml.j2 b/docker-compose/loki/loki-config.yml.j2 index 4c6eca2e..715c7ca5 100644 --- a/docker-compose/loki/loki-config.yml.j2 +++ b/docker-compose/loki/loki-config.yml.j2 @@ -18,9 +18,9 @@ common: schema_config: configs: - from: 2020-10-24 - store: tsdb + store: boltdb-shipper object_store: filesystem - schema: v13 + schema: v11 index: prefix: index_ period: 24h @@ -28,6 +28,16 @@ schema_config: analytics: reporting_enabled: false +limits_config: + retention_period: 168h + +compactor: + working_directory: /loki/retention + compaction_interval: 10m + retention_enabled: true + retention_delete_delay: 2h + retention_delete_worker_count: 150 + # TODO alertmanager # TODO promtail