Created
September 24, 2019 17:47
-
-
Save niftynei/0a10b4f577ac49148877ccfe45c8d30d to your computer and use it in GitHub Desktop.
Command to start Prometheus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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