forked from rama-nallamilli/kafka-prometheus-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (57 loc) · 1.17 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
61
62
63
version: "3.2"
services:
zookeeper:
build: ./zookeeper
command:
- "start-foreground"
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
links:
- zookeeper
ports:
- "9092:9092"
environment:
- KAFKA_ADVERTISED_HOST_NAME=192.168.99.100
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_CREATE_TOPICS=customer:1:1,audit:1:1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- JMX_PORT=9999
kafka-jmx-exporter:
build: ./prometheus-jmx-exporter
ports:
- "8080:8080"
links:
- kafka
environment:
- JMX_PORT=9999
- JMX_HOST=kafka
- HTTP_PORT=8080
- JMX_EXPORTER_CONFIG_FILE=kafka.yml
prometheus:
ports:
- 9090:9090/tcp
image: prom/prometheus:0.18.0
volumes:
- ./mount/prometheus:/etc/prometheus
links:
- kafka-jmx-exporter
grafana:
image: grafana/grafana:3.0.1
ports:
- 3000:3000/tcp
links:
- prometheus
volumes:
- "graf-db:/var/lib/grafana"
graf-db:
command:
- cat
image: infinityworks/graf-db:08
links:
- prometheus
volumes:
- "graf-db:/var/lib/grafana/"
volumes:
graf-db: