Advertisement
Nomadadon

Untitled

Jul 31st, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. # https://finestructure.co/blog/2016/5/16/monitoring-with-prometheus-grafana-docker-part-1
  2. version: '2'
  3. volumes:
  4. prometheus_data: {}
  5. grafana_data: {}
  6. services:
  7. prometheus:
  8. # image: prom/prometheus:0.18.0
  9. image: prom/prometheus
  10. volumes:
  11. - /home/ubuntu/Prometheus/prometheus_data:/prometheus
  12. - /home/ubuntu/Prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
  13. command:
  14. - '--config.file=/etc/prometheus/prometheus.yml'
  15. ports:
  16. - '9090:9090'
  17. node-exporter:
  18. #image: prom/node-exporter:0.12.0rc1
  19. image: prom/node-exporter
  20. ports:
  21. - '9100:9100'
  22. grafana:
  23. #image: grafana/grafana:3.0.0-beta7
  24. image: grafana/grafana
  25. volumes:
  26. - /home/ubuntu/Prometheus/grafana_data:/var/lib/grafana
  27. environment:
  28. - GF_SECURITY_ADMIN_PASSWORD=Gr4ph4n4
  29. depends_on:
  30. - prometheus
  31. ports:
  32. - "3000:3000"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement