0 votes
in Prometheus Percipio by
How to persist its data between restarts in Prometheus running in a Docker container?

1 Answer

0 votes
by

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

0 votes
asked Oct 2, 2022 in Prometheus Percipio by rajeshsharma
0 votes
asked Jul 1, 2022 in Docker by sharadyadav1986
...