github.com/chenbh/concourse/v6@v6.4.2/hack/overrides/prometheus.yml (about) 1 # prometheus.yml - a docker-compose override that adds 'prometheus' to the stack 2 # 3 # once running, head to `localhost:9090` to get access to the Prometheus console. 4 # 5 # ref: https://prometheus.io/ 6 # ref: https://docs.docker.com/compose/extends/ 7 # 8 version: '3' 9 10 services: 11 web: 12 environment: 13 CONCOURSE_PROMETHEUS_BIND_IP: "0.0.0.0" 14 CONCOURSE_PROMETHEUS_BIND_PORT: "9100" 15 ports: 16 - '9100:9100' 17 18 prometheus: 19 image: prom/prometheus 20 entrypoint: 21 - /bin/sh 22 - -c 23 - | 24 echo " 25 global: 26 scrape_interval: '5s' 27 evaluation_interval: '5s' 28 29 scrape_configs: 30 - job_name: 'concourse' 31 static_configs: 32 - targets: 33 - 'web:9100' 34 " > config.yml 35 36 exec prometheus \ 37 --config.file=config.yml \ 38 --storage.tsdb.path=/prometheus 39 ports: 40 - '9090:9090'