Closed
Description
I'm noticing an increased interest to move TSDB blocks from Thanos and/or Prometheus to the Cortex blocks storage. In the PR #2919 I've documented the expected procedure, but would be great to have a tool to automate the rewrite the meta.json
in the bucket.
My idea would be to leave the blocks copy/upload procedure to the user (because it highly depends on the user's setup), while offering a tool to automatically rewrite the meta.json
in the bucket. The procedure is documented in the PR but its TL;DR is:
- Iterate the tenants in the bucket
- For each tenant, iterate the blocks in the bucket
- For each block, download the
meta.json
, decode, manipulate, re-encode and re-upload