Skip to content

Instantly share code, notes, and snippets.

@jmoberly
Created October 31, 2017 20:16
Show Gist options
  • Save jmoberly/cf3af88511cf195a6dee9629cc2b0d42 to your computer and use it in GitHub Desktop.
Save jmoberly/cf3af88511cf195a6dee9629cc2b0d42 to your computer and use it in GitHub Desktop.
Prometheus monitoring stack quick start
sudo docker run -d -p 3000:3000 \
-v /var/lib/grafana:/var/lib/grafana \
-e "GF_SECURITY_ADMIN_PASSWORD=secret" \
grafana/grafana
sudo docker run \
--net host -m 0b -v /etc/prometheus/alertmanager.yml:/etc/prometheus/alertmanager.yml \
-v /etc/prometheus/haproxy.rules:/etc/prometheus/haproxy.rules \
--name alertmanager \
docker.io/prom/alertmanager:master \
-config.file=/etc/prometheus/alertmanager.yml
sudo docker run \
--net host -m 0b -v /etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \
-v /mnt/prometheus/data:/mnt/prometheus/data \
--name prometheus \
docker.io/prom/prometheus:master \
--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/mnt/prometheus/data --web.listen-address=1.2.3.4:9090 \
--web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment