Bucket storage retention policy #6223
-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 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 |
Beta Was this translation helpful? Give feedback.
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
.