Skip to content
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

Thanos bucket command to upload blocks created by Prometheus Snapshot #6263

Closed
nicolastakashi opened this issue Apr 5, 2023 · 2 comments
Closed

Comments

@nicolastakashi
Copy link
Contributor

Is your proposal related to a problem?

Not directly!
But when you need to recreate Prometheus disks for some reason and you don't want to lose the data, be able to upload the blocks created using the Prometheus Snapshot feature.

Another use case would be if you are scaling down the number of Prometheus shards you have and you don't want to loose the collected data which is less than 2h for example.

Describe the solution you'd like

Thanos bucket could expose a command to allow users specify the snapshot dir and than upload the blocks available on this directory.

Describe alternatives you've considered

Nothing comes to my mind for now.

Additional context

N/A

@ZaynJiang
Copy link

I am also facing this issue where, while scaling up Prometheus using Thanos, the Thanos query component can successfully retrieve the data, but when scaling down, data is lost. This appears to be in conflict with the intended design goals of Thanos

@nicolastakashi
Copy link
Contributor Author

I am also facing this issue where, while scaling up Prometheus using Thanos, the Thanos query component can successfully retrieve the data, but when scaling down, data is lost. This appears to be in conflict with the intended design goals of Thanos

This command is already available in Thanos Tool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants