Search code examples
backupmonitoringprometheus

Prometheus export / import data for backup


How do you export and import data in Prometheus? How do you make sure the data is backed up if the instance gets down?

It does not seem that there is a such feature yet, how do you do then?


Solution

  • There is no export and especially no import feature for Prometheus.

    If you need to keep data collected by prometheus for some reason, consider using the remote write interface to write it somewhere suitable for archival, such as InfluxDB (configured as a time-series database).

    Prometheus isn't a long term storage: if the database is lost, the user is expected to shrug, mumble "oh well", and restart Prometheus.

    credits and many thanks to amorken from IRC #prometheus.