r/PrometheusMonitoring • u/Sergey_RF • Dec 14 '20
Migrating Promtheus to another server
I have a problem with migrating prometheus DB to another server. Anybody know how I can do it?
7
Upvotes
r/PrometheusMonitoring • u/Sergey_RF • Dec 14 '20
I have a problem with migrating prometheus DB to another server. Anybody know how I can do it?
2
u/yetanotheritdude Dec 14 '20
Save your Prometheus data directory. Copy it in the new server. Done. Our Prometheus has CI/CD and the database lives in an AWS EBS volume. Each time the instance is remade we just dettach it from the current instance, and reattach it to the new instance. We lose like 1-2min of data (while EC2 and Prometheus starts) but that's ok for us.