Migrating data to a new prometheus server

1,940 views
Skip to first unread message

Justin Poole

unread,
Jun 23, 2017, 6:21:12 PM6/23/17
to Prometheus Users
I have an interest of migrating our primary prometheus server to a different instance class. Initially I went down the path of lifting all data to the new server directly using rsync but now I'm thinking there must be an easier way.

Is federation the answer here? Is there a federation rule that would fundamentally turn a prometheus server into a "slave" of another?

If this isn't possible then any guidance in terms of how I sync the data to the new server would be greatly appreciated.

Thanks for the great monitoring tool, and any help I can get!

Brian Brazil

unread,
Jun 24, 2017, 1:58:55 AM6/24/17
to Justin Poole, Prometheus Users
Your options are either rsync, or turn on the new server and wait until it has enough data for you.

Federation does not help at all here, as it only returns a snapshot of the most recent sample.

Brian

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e4e53212-6515-4407-bad1-2a258d30629a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Justin Poole

unread,
Jun 28, 2017, 3:31:21 PM6/28/17
to Prometheus Users, sdp...@gmail.com
Thanks.

time="2017-06-28T12:19:20-07:00" level=info msg="Build context (go=go1.7.5, user=root@a8af9200f95d, date=20170210-14:41:22)" source="main.go:76"
time="2017-06-28T12:19:20-07:00" level=info msg="Loading configuration file /opt/prometheus/prometheus.yml" source="main.go:248"
time="2017-06-28T12:19:20-07:00" level=error msg="Error opening memory series storage: file missing" source="main.go:182"

I'm seeing this on my most recent rsync when trying to start the new server. Reading through the code now to try and find what file is can't find. Do you know offhand?

On Friday, June 23, 2017 at 10:58:55 PM UTC-7, Brian Brazil wrote:
Your options are either rsync, or turn on the new server and wait until it has enough data for you.

Federation does not help at all here, as it only returns a snapshot of the most recent sample.

Brian
On 24 Jun 2017 00:21, "Justin Poole" <sdp...@gmail.com> wrote:
I have an interest of migrating our primary prometheus server to a different instance class. Initially I went down the path of lifting all data to the new server directly using rsync but now I'm thinking there must be an easier way.

Is federation the answer here? Is there a federation rule that would fundamentally turn a prometheus server into a "slave" of another?

If this isn't possible then any guidance in terms of how I sync the data to the new server would be greatly appreciated.

Thanks for the great monitoring tool, and any help I can get!

--
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 post to this group, send email to promethe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages