Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://finestructure.co/blog/2016/5/16/monitoring-with-prometheus-grafana-docker-part-1
- version: '2'
- volumes:
- prometheus_data: {}
- grafana_data: {}
- services:
- prometheus:
- # image: prom/prometheus:0.18.0
- image: prom/prometheus
- volumes:
- - /home/ubuntu/Prometheus/prometheus_data:/prometheus
- - /home/ubuntu/Prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- command:
- - '--config.file=/etc/prometheus/prometheus.yml'
- ports:
- - '9090:9090'
- node-exporter:
- #image: prom/node-exporter:0.12.0rc1
- image: prom/node-exporter
- ports:
- - '9100:9100'
- grafana:
- #image: grafana/grafana:3.0.0-beta7
- image: grafana/grafana
- volumes:
- - /home/ubuntu/Prometheus/grafana_data:/var/lib/grafana
- environment:
- - GF_SECURITY_ADMIN_PASSWORD=Gr4ph4n4
- depends_on:
- - prometheus
- ports:
- - "3000:3000"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement