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

Category: Self-Hosting

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

Run Prometheus metrics collection server in Docker — the foundation of the self-hosted monitoring

Runs Prometheus — it scrapes metrics endpoints from your apps and stores them in a time-series database for querying and alerting.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.