forked from dgarros/py-metric-collector
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (41 loc) · 1014 Bytes
/
docker-compose.yml
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
41
42
43
44
45
version: '3'
services:
db:
image: influxdb:1.6.2-alpine
environment:
- INFLUXDB_DB=py-mc
ports:
- 8086:8086
telegraf:
image: telegraf:1.7.3-alpine
volumes:
- ./quickstart/telegraf.conf:/etc/telegraf/telegraf.conf
ports:
- 8186:8186
metric-collector:
build: .
depends_on:
- telegraf
entrypoint:
- metric-collector
- --commands=commands.yaml
- --start
- --credentials=${CREDENTIALS:-credentials.yaml}
- --hosts=${HOSTS:-hosts.yaml}
- --output-type=http
- --output-addr=http://telegraf:8186/write
- --use-scheduler
volumes:
- ./quickstart:/quickstart
working_dir: /quickstart
ports:
- "8000:8000"
depends_on:
- db
grafana:
image: grafana/grafana:5.1.0
volumes:
- ./quickstart/grafana/datasources:/etc/grafana/provisioning/datasources
- ./quickstart/grafana/dashboards:/etc/grafana/provisioning/dashboards
ports:
- "3000:3000"