Skip to content

Commit

Permalink
Merge pull request #139 from mdegat01/compactor-for-retention
Browse files Browse the repository at this point in the history
Fix retention by using compactor
  • Loading branch information
mdegat01 authored Jan 10, 2022
2 parents c6f703f + cd14f4a commit f95f0f2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions loki/rootfs/etc/loki/default-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ storage_config:
compactor:
working_directory: /data/loki/boltdb-shipper-compactor
shared_store: filesystem
retention_enabled: true

limits_config:
reject_old_samples: true
reject_old_samples_max_age: 168h
retention_period: ${RETENTION_PERIOD:29d}

chunk_store_config:
max_look_back_period: 0s

table_manager:
retention_deletes_enabled: true
retention_period: ${RETENTION_PERIOD:696h}

0 comments on commit f95f0f2

Please sign in to comment.