forked from Dabz/ccloudexporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (36 loc) · 926 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
version: '3.1'
services:
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus.yml:/prometheus.yml
- prometheus-data:/prometheus
command:
- '--config.file=/prometheus.yml'
ports:
- 9090:9090
restart: always
ccloud_exporter:
image: dabz/ccloudexporter
container_name: ccloud_exporter
environment:
CCLOUD_API_KEY: ${CCLOUD_API_KEY}
CCLOUD_API_SECRET: ${CCLOUD_API_SECRET}
CCLOUD_CLUSTER: ${CCLOUD_CLUSTER}
CCLOUD_CONNECTOR: ${CCLOUD_CONNECTOR}
CCLOUD_KSQL: ${CCLOUD_KSQL}
grafana:
image: grafana/grafana
container_name: grafana
depends_on:
- prometheus
command: cfg:default.log.level="debug"
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
- grafana-data:/var/lib/grafana
ports:
- 3000:3000
volumes:
prometheus-data:
grafana-data: