-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
60 lines (60 loc) · 1.85 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3'
services:
grafana:
image: grafana/grafana:master
ports:
- 3000:3000
volumes:
- ./examples/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./examples/grafana/datasources:/etc/grafana/provisioning/datasources:ro
influxdb:
image: influxdb
ports:
- 8082:8082
- 8086:8086
- 8089:8089
volumes:
- ./examples/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
- ./examples/influxdb/prometheus.iql:/docker-entrypoint-initdb.d/prometheus.iql:ro
environment:
- INFLUXDB_DB=prometheus
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=password
- INFLUXDB_USER=prometheus
- INFLUXDB_USER_PASSWORD=password
- INFLUXDB_READ_USER=grafana
- INFLUXDB_READ_USER_PASSWORD=password
prometheus:
image: prom/prometheus:master
ports:
- 9090:9090
volumes:
- ./examples/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
command: [
"--config.file=/etc/prometheus/prometheus.yml",
"--log.level=debug",
"--storage.tsdb.path=/prometheus",
"--storage.tsdb.retention=1h",
"--web.enable-admin-api",
]
depends_on:
- prometheus-influxdb-adapter
prometheus-influxdb-adapter:
image: kaorimatz/prometheus-influxdb-adapter
ports:
- 9201:9201
environment:
- WRITE_INFLUXDB_URL=http://prometheus:password@influxdb:8086
command: [
"--log.level=debug",
"--read.influxdb.field=max_over_time:max",
"--read.influxdb.field=min_over_time:min",
"--read.influxdb.field=sum_over_time:sum",
"--read.influxdb.field=mean",
"--read.influxdb.retention-policy=1h:1h",
"--read.influxdb.retention-policy=5m:5m",
"--read.influxdb.retention-policy=1m",
"--read.influxdb.rpc-address=influxdb:8082",
]
depends_on:
- influxdb