-
Is it possible to configure retention policy for block storage? For example, if I want to store metrics for 6 months only. |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.