timescale / promscale

[DEPRECATED] Promscale is a unified metric and trace observability backend for Prometheus, Jaeger and OpenTelemetry built on PostgreSQL and TimescaleDB.
https://www.timescale.com/promscale
Apache License 2.0
1.33k stars 168 forks source link

Prom-Migrator - prometheus migration from centos to Ubuntu #1647

Open prashantnitt07 opened 2 years ago

prashantnitt07 commented 2 years ago

prometheus migration from centos to Ubuntu

1.prometheus version :2.29.1 2.alertmanger 0.23.0

  1. we are using prometheus-postgres-adapter and timescale DB.

how can migrate TSDB old promethues to new prometheus TSDB

Harkishen-Singh commented 2 years ago

Hello, if you want to migrate to new prometheus instance in Ubuntu, just point the write-url to prometheus/api/v1/write and keep the max-read-duration low, maybe 1 minute. This is because I recall that when I was testing migrating to Prometheus, anything larger than 1 minute block makes Prometheus error out, because Prometheus wasn't meant to be written into.

However, if you want to migrate data to Promscale, then you don't need any limit on max-read-duration.

BTW, can you share why you are using prometheus-postgres-adapter. The project is no longer maintained and instead, we recommend to use Promscale.

VineethReddy02 commented 1 year ago

@prashantnitt07 Does the above info answer your question? If yes, can you please close this issue?