Skip to content

Commit 16bd1ed

Browse files
committed
feat: update Loki configuration to include retention settings and compactor options
1 parent 98bc3ac commit 16bd1ed

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

loki/config.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ limits_config:
3030
reject_old_samples_max_age: 168h
3131
ingestion_rate_mb: 30 #修改每用户摄入速率限制,即每秒样本量,默认值为4M
3232
ingestion_burst_size_mb: 20 #修改每用户摄入速率限制,即每秒样本量,默认值为6M
33+
retention_period: 336h
3334

34-
table_manager:
35-
# The retention period must be a multiple of the index / chunks
36-
# table "period" (see period_config).
37-
retention_deletes_enabled: true
38-
# This is 15 weeks retention, based on the 168h (1week) period durations used in the rest of the examples.
39-
retention_period: 336h
35+
compactor:
36+
working_directory: /data/retention
37+
compaction_interval: 10m
38+
retention_enabled: true
39+
retention_delete_delay: 2h
40+
retention_delete_worker_count: 150
41+
delete_request_store: gcs

0 commit comments

Comments
 (0)