Documentation: missing examples with named docker volumes / no info about the right data-path (/prometheus) in container
zenhighzer opened this issue · 0 comments
Hi there,
i took me some time to create a prometheus-docker-container with a named volume, because its not clearly documented.
On https://prometheus.io/docs/prometheus/latest/installation/ there is written:
[...] "For production deployments it is highly recommended to use a named volume (https://docs.docker.com/storage/volumes/) to ease managing the data on Prometheus upgrades."
But unfortunaltey there is no example about named volumes. What made me sad is that there is no hint which data-path in the container (/prometheus) should be mounted to the named volume.
If you look at the grafana-documentation its pretty good documented and there is an example with named volumes:
https://grafana.com/docs/grafana/latest/setup-grafana/configure-docker/
Run Grafana container with persistent storage (recommended)
docker volume create grafana-storage
docker run -d -p 3000:3000 --name=grafana -v grafana-storage:/var/lib/grafana grafana/grafana-enterprise
Best Regards
Zen