Prometheusサーバの移行(Snapshot)
- Prometheusサーバを「--web.enable-admin-api」オプションを付与して起動
- 「curl -XPOST http://localhost:9090/api/v1/admin/tsdb/snapshot」コマンドを実行(/var/lib/prometheus/dataにsnapshotsディレクトリが生成される)
- 生成されたsnapshots内のディレクトリを移行先サーバの/var/lib/prometheus/dataに格納
- 移行先のPrometheusサーバを起動
参考: