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
[question] How do I ingest Prometheus metric txt files into VictoriaMetrics #614
Comments
VictoriaMetrics doesn't have a handler for importing data in Prometheus format. You need to scrape it by exposing it via Prometheus exporter - see https://victoriametrics.github.io/#how-to-scrape-prometheus-exporters-such-as-node-exporter for details. Note that you should set See also backfilling docs about importing historical data into VictoriaMetrics. |
Thanks for the swift response! I saw those documents, but had trouble understanding them. The confusion is that I do not understand what is meant by the words |
BTW, the next version of VictoriaMetrics will support data ingestion in Prometheus format via |
Thanks, @valyala! I will give it a try. By the way, I really like that in the docs you include a "verifying the ingestion worked" section. |
Great news, @valyala! It totally works. Thank you so much for this feature. |
Hi @valyala, as an open source maintainer, I feel like the scum of the Earth asking this question. Do you know which version of VM this feature is slated for? I see that you have a very rapid/frequent release process. =) |
This will be included in Re-opening this issue until |
@anjakefala , VictoriaMetrics v1.38.1 has been released. It supports /api/v1/import/prometheus handler for importing data in Prometheus exposition format. Closing this issue as done. |
👏 🎉 |
The documentation lead to me to believe that it should be possible to backfill with metrics from Prometheus exporters:
We have txt files which contain the raw Prometheus metrics in Prometheus metric format. i.e.
However, clicking on the linked documentation did not really help me figure out how to ingest these files. I see documentation for scraping node exporter targets, but I am confused from reading it how I ingest metrics these txt files that already exist.
/import
does not work because it only accepts json files. It cannot parse these.The text was updated successfully, but these errors were encountered: