cortex icon indicating copy to clipboard operation
cortex copied to clipboard

Existed Prometheus TSDB block importing

Open songjiayang opened this issue 2 years ago • 5 comments

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.

songjiayang avatar Nov 07 '22 02:11 songjiayang

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.

ilangofman avatar Nov 07 '22 15:11 ilangofman

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.

yeya24 avatar Jan 29 '23 07:01 yeya24

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.

swaingotnochill avatar Feb 03 '23 10:02 swaingotnochill

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

edith007 avatar Mar 07 '23 18:03 edith007

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[bot] avatar Jun 18 '23 09:06 stale[bot]