Is there any way to migrate data stored in InfluxDB to Prometheus TSDB?

47 views
Skip to first unread message

zhao wang

unread,
Dec 14, 2020, 4:38:45 AM12/14/20
to Prometheus Users
Just as the title. Is there any tool that can replay the InfluxDB data and write them to Prometheus TSDB? Or some other ways to migrate data from InfluxDB to Prometheus TSDB?

Aliaksandr Valialkin

unread,
Dec 15, 2020, 8:28:15 AM12/15/20
to zhao wang, Prometheus Users
Prometheus doesn't support importing historical data yet - see https://prometheus.io/docs/introduction/roadmap/#backfill-time-series . So it is impossible to import data from InfluxDB to Prometheus at the moment. But you can import InfluxDB data to other TSDB systems with tools like vmctl.

On Mon, Dec 14, 2020 at 11:38 AM zhao wang <wangz...@gmail.com> wrote:
Just as the title. Is there any tool that can replay the InfluxDB data and write them to Prometheus TSDB? Or some other ways to migrate data from InfluxDB to Prometheus TSDB?

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/8f7f3906-6b06-48f8-8dc7-944b59c05725n%40googlegroups.com.


--
Best Regards,

Aliaksandr Valialkin, CTO VictoriaMetrics

Bjoern Rabenstein

unread,
Dec 22, 2020, 1:21:48 PM12/22/20
to zhao wang, Prometheus Users
The upcoming release v2.24 of the Prometheus server will include a new
feature of the `promtool` command line tool. It will allow backfilling
from an OpenMetrics file into Prometheus.

In your case, that reduces the problem to extracting the data out of
InfluxDB into an OpenMetrics file, for which tooling will hopefully
soon exist.

We are also keen on finding better ways of allowing data migration,
but ideally without writing special code for every other TSDB in
existence. The implementation of OpenMetrics support is a first step.

--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in
Reply all
Reply to author
Forward
0 new messages