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