Skip to content

Instantly share code, notes, and snippets.

@niftynei niftynei/shell.sh
Created Sep 24, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.