Skip to content

Commit 7dfcc8f

Browse files
committed
1 parent d2cfb1b commit 7dfcc8f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

infrastructure/loki.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ storage_config:
6262

6363
compactor:
6464
working_directory: /tmp/loki/boltdb-shipper-compactor
65+
compaction_interval: 10m
66+
retention_enabled: true
67+
retention_delete_delay: 2h
68+
retention_delete_worker_count: 150
69+
delete_request_store: filesystem
6570

66-
limits_config:
67-
reject_old_samples: true
68-
reject_old_samples_max_age: 168h
69-
split_queries_by_interval: 24h
70-
71-
table_manager:
72-
retention_deletes_enabled: true
73-
retention_period: 168h
71+
# https://grafana.com/docs/loki/latest/operations/storage/retention/#configuring-the-retention-period
72+
limits_config:
73+
retention_period: 336h # 14 days
7474

7575
ruler:
7676
storage:

0 commit comments

Comments
 (0)