0 votes
in Prometheus Percipio by (23.1k points)
How to persist its data between restarts in Prometheus running in a Docker container?

1 Answer

0 votes
by (23.1k points)

We can create/mount volume and persist application data between multiple restarts in Prometheus by using below command:

$ docker volume create a-new-volume

$ docker run \ –publish 9090:9090 \

–volume a-new-volume:/prometheus \

–volume “$(pwd)”/prometheus.yml:/etc/prometheus/prometheus.yml \ prom/prometheus

Related questions

...