docker-compose.metrics.yml 509 B

12345678910111213141516171819
  1. version: "3.8"
  2. services:
  3. prometheus:
  4. image: prom/prometheus
  5. volumes:
  6. - ./monitoring/prometheus/:/etc/prometheus/
  7. - prometheus_data:/prometheus
  8. command:
  9. - "--config.file=/etc/prometheus/prometheus.yml"
  10. - "--storage.tsdb.path=/prometheus"
  11. - "--web.console.libraries=/usr/share/prometheus/console_libraries"
  12. - "--web.console.templates=/usr/share/prometheus/consoles"
  13. - "--web.enable-lifecycle"
  14. ports:
  15. - 9090:9090
  16. volumes:
  17. prometheus_data: {}