![]() To save your data, you need to set up persistent storage (or bind mounts) for your container. Prometheus data is stored in /prometheus dir inside the container, so the data is cleared every time the container gets restarted. Or bind-mount the directory containing prometheus.yml onto v /path/to/prometheus.yml:/etc/prometheus/prometheus.yml \ Here areīind-mount your prometheus.yml from the host by running: docker run \ To provide your own configuration, there are several options. To ease managing the data on Prometheus upgrades. Production deployments it is highly recommended to use a The Prometheus image uses a volume to store the actual metrics. This starts Prometheus with a sampleĬonfiguration and exposes it on port 9090. Running Prometheus on Docker is as simple as docker run -p 9090:9090 ![]() ![]() Out the download section for a list of allįor building Prometheus components from source, see the Makefile targets inĪll Prometheus services are available as Docker images on We provide precompiled binaries for most official Prometheus components.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |