Can I export all data of to other prometheus instance's tsdb?

30 views
Skip to first unread message

abc...@gmail.com

unread,
Jun 8, 2021, 6:11:12 AM6/8/21
to Prometheus Users
Let's suppose I plan to scale out Prometheus cluster.

In the case of node removing, I have to export all data to other instance's tsdb.

is it possible?  

Stuart Clark

unread,
Jun 8, 2021, 9:17:13 AM6/8/21
to abc...@gmail.com, Prometheus Users
The TSDB is stored on disk, so yes it is possible to use those files
elsewhere. Make sure you either have the Prometheus fully stopped or use
the backup mechanism so you don't end up with corrupted files.

However I'm not sure I understand what you are trying to do? When you
say "scale out" are you meaning you are wanting to move from a single
instance to a HA pair? If so there isn't really the need to have the
older data when you create it, although you could do so. If you are
thinking "scale out" in terms of clustering then that's not how
Prometheus operates.

--
Stuart Clark

Reply all
Reply to author
Forward
0 new messages