monitoring - containerized Prometheus and Grafana on HypriotOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
558 B

  1. ---
  2. version: '2.1'
  3. volumes:
  4. tsdb:
  5. name: prometheus-tsdb
  6. config:
  7. name: grafana-config
  8. data:
  9. name: grafana-data
  10. services:
  11. prometheus:
  12. container_name: prometheus
  13. hostname: prometheus
  14. image: prom/prometheus
  15. ports:
  16. - 9090:9090
  17. volumes:
  18. - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
  19. - tsdb:/prometheus:rw
  20. grafana:
  21. container_name: grafana
  22. hostname: grafana
  23. image: grafana/grafana
  24. ports:
  25. - 3000:3000
  26. volumes:
  27. - config:/etc/grafana:rw
  28. - data:/var/lib/grafana:rw