Repository navigation
|
Is it possible to configure retention policy for block storage? For example, if I want to store metrics for 6 months only. |
Answered by
pracucci
Dec 23, 2020
Replies: 2 comments 1 reply
|
Currently, the retention policy for Cortex running with the blocks storage can be enforced at the object store (typically with a bucket policy, eg. when running in the cloud). We also plan to add per-tenant custom retention support in the compactor, but the work hasn't started yet. |
0 replies
Answer selected by
zarom
|
I think it can be divided into two steps, first implement a global retention strategy, this is simple and rewarding. After that, add the per-tenant custom retention, the retention of per-tenant must be less than the global retention. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the retention policy for Cortex running with the blocks storage can be enforced at the object store (typically with a bucket policy, eg. when running in the cloud).
We also plan to add per-tenant custom retention support in the compactor, but the work hasn't started yet.