how to dump wal to block without prometheus?

37 views
Skip to first unread message

unread,
Nov 12, 2020, 10:47:43 PM11/12/20
to Prometheus Users
when prometheus reboot, it take a lot of time to read the wal,sometimes it must start as soon as possible. so i backup the wal and start prometheus with no wal.  I want to restore these data and upload them to S3 by thanos, so that It wouldn't be lost. is there a way?

Bjoern Rabenstein

unread,
Nov 27, 2020, 12:48:23 PM11/27/20
to 东, Prometheus Users
I guess you could just copy the `wal` and the `chunks_head` directory
into a new empty directory and then start a separate Prometheus server
without any configured scrape targets, pointing at that new directory
as its data directory.

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