Info
Content

Prometheus in Docker

Quick Deployment:

prometheus.yml direct bind:

docker run -p 9090:9090 -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus

Volume to host config file:

docker run -p 9090:9090 -v /prometheus-data prom/prometheus --config.file=/prometheus-data/prometheus.yml

You will want to change /tmp/prometheus.yml to match your setup!


Docker Hub page: https://hub.docker.com/r/prom/prometheus

Install Docs: https://prometheus.io/docs/prometheus/latest/installation/

Config Docs: https://prometheus.io/docs/prometheus/latest/configuration/configuration/

Back to top