Skip to content

Instantly share code, notes, and snippets.

@niftynei
Created September 24, 2019 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niftynei/0a10b4f577ac49148877ccfe45c8d30d to your computer and use it in GitHub Desktop.
Save niftynei/0a10b4f577ac49148877ccfe45c8d30d to your computer and use it in GitHub Desktop.
Command to start Prometheus
docker run -d \
--network=host \
-v ~/extra/prom/data:/data:rw \
-v ~/extra/prom/prometheus.yaml:/config/prometheus.yaml:ro \
-v ~/extra/prom/alerts.yaml:/config/alerts.yaml:ro \
--read-only \
--name prometheus \
"prom/prometheus:v2.12.0" --config.file=/config/prometheus.yaml --storage.tsdb.path=/data/metrics --storage.tsdb.retention=31d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment