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

Existed Prometheus TSDB block importing #4956

Open
songjiayang opened this issue Nov 7, 2022 · 5 comments
Open

Existed Prometheus TSDB block importing #4956

songjiayang opened this issue Nov 7, 2022 · 5 comments

Comments

@songjiayang
Copy link
Contributor

songjiayang commented Nov 7, 2022

Is your feature request related to a problem? Please describe.

There are many existed Prometheus instances, when change them to Cortex, how can we query the old Prometheus data?

Describe the solution you'd like
How about adding a API for old Prometheus TSDB block data import.

Describe alternatives you've considered

More like Prometheus backfing solution, but it's local solution and does't support mutiple tenents.

@ilangofman
Copy link
Contributor

ilangofman commented Nov 7, 2022

It is possible to add Prometheus blocks into Cortex, but some things need to be changed. Mainly, some labels must be added to the meta.json file. The thanosconvert tool can support migrating Prometheus blocks to Cortex as well. That page also describes how the metadata file must be changed.

I think expanding it to an API would be nice and make it more flexible. I think I saw historical block import as part of the last meeting's agenda in the roadmap section, so there might be some discussion happening there.

@yeya24
Copy link
Contributor

yeya24 commented Jan 29, 2023

It would be nice if we can support uploading Thanos blocks, too. Ideally Prometheus and Thanos blocks are similar, there are some differences on the meta.json file.
In terms of downsampled Thanos blocks, I think we can skip them for now.

@swaingotnochill
Copy link

Hi @songjiayang , I found this project in LFX CNCF and interested to work on. I have experience working with Go, but not familiar with Thanos and Prometheus. Is it required to have previous knowledge of Prometheus and Cortex to apply? How can i get started with? Any help is appreciated.

@edith007
Copy link

edith007 commented Mar 7, 2023

Thanks a lot @alanprot for believing me 🙇🏻 Looking forward to work on this project under LFX mentorship! 🙇🏻

@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants