Bucket storage retention policy #6223
Answered
by
yeya24
ssharma9125
asked this question in
Q&A
|
Hi Everyone, I am using cortex for the long term storage of prometheus with the gcs (google cloud storage) bucket as the backend storage. I wanted to know how to configure the retention period for the metrics in the bucket. For my use case i only want to retain the metrics from the last 15 days and delete the data older than that from the bucket. Can i configure this in the cortex or do i need to apply the policy at the bucket level? |
Answered by
yeya24
Oct 4, 2024
Replies: 2 comments 4 replies
3 replies
|
Hey @ssharma9125, sorry for the spam. For your question, it is recommended to set up Cortex to apply retention via compactor instead of using GCS bucket level retention policy. The config in compactor is called |
1 reply
Answer selected by
yeya24
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @ssharma9125, sorry for the spam. For your question, it is recommended to set up Cortex to apply retention via compactor instead of using GCS bucket level retention policy.
The config in compactor is called
compactor_blocks_retention_period.