-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathprometheus.yml
More file actions
40 lines (36 loc) · 918 Bytes
/
Copy pathprometheus.yml
File metadata and controls
40 lines (36 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# prometheus.yml - a docker-compose override that adds 'prometheus' to the stack
#
# once running, head to `localhost:9090` to get access to the Prometheus console.
#
# ref: https://prometheus.io/
# ref: https://docs.docker.com/compose/extends/
#
version: '3'
services:
web:
environment:
CONCOURSE_PROMETHEUS_BIND_IP: "0.0.0.0"
CONCOURSE_PROMETHEUS_BIND_PORT: "9100"
ports:
- '9100:9100'
prometheus:
image: prom/prometheus
entrypoint:
- /bin/sh
- -c
- |
echo "
global:
scrape_interval: '1s'
evaluation_interval: '1s'
scrape_configs:
- job_name: 'concourse'
static_configs:
- targets:
- 'web:9100'
" > config.yml
exec prometheus \
--config.file=config.yml \
--storage.tsdb.path=/prometheus
ports:
- '9090:9090'