-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated detailed steps for migrating blocks from Thanos to Mimir. #3290
Conversation
The detailed steps on how to migrate the blocks from Thanos to Mimir isn't available and the current documentation also doesn't seems to be helpful. Therefor I have formulated the steps I have followed for migrating the blocks from Thanos to Mimir so that it would be helpful for people who are looking to move from Thanos.
Relates to #3288 |
@Leegin-darknight, thank you for the contribution. I am going to restructure is a bit to conform to common style. |
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for working on this. I focused on technical accuracy and use of the scripts in my review, and left some comments.
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
Updated the documentation with the changes suggested with the for loop and also included steps to remove the external labels from the meta.json as well.
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
Updated the script to remove labels from meta.json, retention of the downsampled blocks and other changes suggested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much, this looks great!
@osg-grafana this is ready for "docs squad" review.
@@ -88,6 +88,8 @@ This may cause that incorrect results are returned for the query. | |||
1) Copy the blocks from Thanos's bucket to an Intermediate bucket | |||
|
|||
Create an intermediate object storage bucket(S3,GCS,etc.) in your cloud provider where you can copy the historical blocks and work on them before uploading to the Mimir bucket. | |||
|
|||
> **Note**: It is recommeneded to run all the above steps in a **screen** command to avoid any interruptions as these may take time depending on the amount of data to be processed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> **Note**: It is recommeneded to run all the above steps in a **screen** command to avoid any interruptions as these may take time depending on the amount of data to be processed. | |
> **Tip:** Run the commands within a `screen` or `tmux` session, to avoid any interruptions because the steps might take time depending on the amount of data being processed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pstibrany and @Leegin-darknight, I have updated this suggestion to a tip and tweaked the phrases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@osg-grafana I have updated the PR with the changes suggested. Can you please review?
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unblocking with several nits that conform to style and phrasing, as well as clarify some abiguity.
Fixes #3120 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You really did a fantastic job! I would love to merge it asap. I just left a couple of last comments.
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
docs/sources/migration-guide/migrating-from-thanos-or-prometheus.md
Outdated
Show resolved
Hide resolved
Copy the blocks from the intermediate bucket to the Mimir bucket using the below gsutil command. | ||
|
||
```bash | ||
gsutil -m cp -r gs://<mimir-intermediate-bucket> gs://<mimir-gcs-bucket>/<TENANT>/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind showing the AWS command as well, like you did at the top of the section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pracucci I have updated the doc with the command for AWS as well. Thanks.
I have updated the PR with the AWS command to copy blocks and corrected the typos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Signed-off-by: Marco Pracucci <marco@pracucci.com>
…afana#3290) * Updated detailed steps for migrating blocks from Thanos to Mimir. The detailed steps on how to migrate the blocks from Thanos to Mimir isn't available and the current documentation also doesn't seems to be helpful. Therefor I have formulated the steps I have followed for migrating the blocks from Thanos to Mimir so that it would be helpful for people who are looking to move from Thanos. * Updated the changes suggested after review * Replaced xargs with for loop as suggested * Updated the documentation with the changes suggested. Updated the documentation with the changes suggested with the for loop and also included steps to remove the external labels from the meta.json as well. * Updated with the changes suggested * Updated with the changes suggested Updated the script to remove labels from meta.json, retention of the downsampled blocks and other changes suggested. * Updated with the changes suggested. * Updated the changes suggested * Updated with the changes suggested. I have updated the PR with the AWS command to copy blocks and corrected the typos.
The detailed steps on how to migrate the blocks from Thanos to Mimir isn't available and the current documentation also doesn't seems to be helpful. Therefor I have formulated the steps I have followed for migrating the blocks from Thanos to Mimir so that it would be helpful for people who are looking to move from Thanos.
What this PR does
Which issue(s) this PR fixes or relates to
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]