forked from jjungnickel/docker-telegraf
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.kafka.yml
99 lines (95 loc) · 2.6 KB
/
docker-compose.kafka.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "2"
services:
zookeeper:
image: appcelerator/zookeeper:3.4.8
ports:
- "2181:2181"
- "2888:2888"
- "3888:3888"
kafka:
image: appcelerator/kafka:10.0.0.1
environment:
ZOOKEEPER_CONNECT: zookeeper:2181
TOPIC_LIST: "telegraf"
ports:
- "9092:9092"
depends_on:
- zookeeper
telegraf-agent:
image: appcelerator/telegraf
build:
context: .
dockerfile: Dockerfile
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /var/run/utmp:/var/run/utmp:ro
environment:
OUTPUT_INFLUXDB_ENABLED: "false"
OUTPUT_KAFKA_ENABLED: "true"
OUTPUT_KAFKA_BROKER_URL: "kafka:9092"
OUTPUT_KAFKA_TOPIC: "telegraf"
INPUT_DOCKER_ENABLED: "false"
INPUT_CPU_ENABLED: "false"
INPUT_DISK_ENABLED: "false"
INPUT_DISKIO_ENABLED: "false"
INPUT_KERNEL_ENABLED: "false"
INPUT_MEM_ENABLED: "false"
INPUT_PROCESS_ENABLED: "false"
INPUT_SWAP_ENABLED: "false"
INPUT_SYSTEM_ENABLED: "false"
INPUT_NETSTAT_ENABLED: "false"
INPUT_NET_ENABLED: "false"
INPUT_LISTENER_ENABLED: "true"
INTERVAL: 2s
FLUSH_INTERVAL: 2s
FLUSH_JITTER: 0s
depends_on:
- kafka
- zookeeper
telegraf-consumer:
image: appcelerator/telegraf
build:
context: .
dockerfile: Dockerfile
volumes:
- /tmp/docker-compose-telegraf-output:/var/data
environment:
OUTPUT_INFLUXDB_ENABLED: "false"
OUTPUT_FILE_ENABLED: "true"
OUTPUT_FILE_PATH: "/var/data/output.dat"
INPUT_KAFKA_ENABLED: "true"
INPUT_KAFKA_BROKER_URL: "kafka:9092"
INPUT_KAFKA_ZOOKEEPER_PEER: "zookeeper:2181"
INPUT_KAFKA_TOPIC: "telegraf"
INPUT_DOCKER_ENABLED: "false"
INPUT_CPU_ENABLED: "false"
INPUT_DISK_ENABLED: "false"
INPUT_DISKIO_ENABLED: "false"
INPUT_KERNEL_ENABLED: "false"
INPUT_MEM_ENABLED: "false"
INPUT_PROCESS_ENABLED: "false"
INPUT_SWAP_ENABLED: "false"
INPUT_SYSTEM_ENABLED: "false"
INPUT_NETSTAT_ENABLED: "false"
INPUT_NET_ENABLED: "false"
INPUT_LISTENER_ENABLED: "fase"
INTERVAL: 2s
FLUSH_INTERVAL: 2s
FLUSH_JITTER: 0s
command: ["-m", "restart"]
depends_on:
- kafka
sut:
image: appcelerator/sut
build:
context: ./sut
dockerfile: Dockerfile
command: ["/bin/test-queue.sh", "16"]
volumes:
- /tmp/docker-compose-telegraf-output:/var/data
- /var/run/docker.sock:/var/run/docker-host.sock:ro
depends_on:
- telegraf-agent
- telegraf-consumer
- kafka
- zookeeper