Open bpfoster opened 9 months ago
Same thing here, I would also love to have more details on how to setup the retention policy on the Object Storage side (e.g S3). For example, I see the loki_cluster_seed.json
file at the root of the bucket, but a naive expiration policy would delete it after some time. Is it ok ? Or should I define a specific prefix in my retention policy ?
Is your feature request related to a problem? Please describe. The documentation on storage states:
I read that as - if you're not using the filesystem store, Loki will not delete old data.
The documentation on retention however, states:
So it sounds like (and a test of the behavior seems to confirm) that when using a non-filesystem store, Loki can delete old data without the need to rely on configuring TTLs on the store.
The retention documentation also makes it sound like you can configure targeted retention policies, despite the storage page stating:
Describe the solution you'd like I believe the storage page should be updated/reworded to make it clear that Loki is capable of cleaning up old data even when using a store other than the filesystem.
Describe alternatives you've considered n/a
Additional context I am testing with S3, TSDB, and the compactor.