Skip to content

Commit 5b6badc

Browse files
committed
Loki reduce log retention and tweak compactor
1 parent 1e57dfd commit 5b6badc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

logging/conf/loki-config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,21 @@ storage_config:
4242
compactor:
4343
working_directory: /loki/boltdb-shipper-compactor
4444
shared_store: filesystem
45+
retention_enabled: true
46+
retention_delete_delay: 2h
47+
retention_delete_worker_count: 150
48+
delete_request_cancel_period: 5m
4549

4650
limits_config:
4751
reject_old_samples: true
4852
reject_old_samples_max_age: 168h
53+
retention_period: 720h # Retain logs for 30 days
4954

5055
chunk_store_config:
5156
max_look_back_period: 0s
5257

5358
table_manager:
54-
retention_deletes_enabled: false
59+
retention_deletes_enabled: false # Not used with boltdb-shipper
5560
retention_period: 0s
5661

5762
ruler:

0 commit comments

Comments
 (0)