forked from appcelerator-archive/docker-telegraf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.plugins.yml
90 lines (86 loc) · 2.4 KB
/
docker-compose.plugins.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
version: "2"
services:
nats:
image: nats
ports:
- "4222:4222"
- "8222:8222"
telegraf-agent:
image: appcelerator/telegraf
build:
context: .
dockerfile: Dockerfile
ports:
- "8094:8094"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /var/run/utmp:/var/run/utmp:ro
environment:
OUTPUT_INFLUXDB_ENABLED: "false"
OUTPUT_NATS_ENABLED: "true"
OUTPUT_KAFKA_ENABLED: "false"
OUTPUT_NATS_URL: "nats://nats:4222"
OUTPUT_NATS_SUBJECT: "telegraf.out"
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
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"
OUTPUT_NATS_ENABLED: "false"
INPUT_KAFKA_ENABLED: "false"
INPUT_NATS_ENABLED: "true"
INPUT_NATS_URL: "nats://nats:4222"
INPUT_NATS_SUBJECT: "telegraf.in"
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: "false"
INTERVAL: 2s
FLUSH_INTERVAL: 2s
FLUSH_JITTER: 0s
entrypoint: ["/run.sh"]
command: ["-m", "restart"]
depends_on:
- nats
sut:
image: appcelerator/sut
build:
context: ./sut
dockerfile: Dockerfile
command: ["/bin/test-nats.sh"]
volumes:
- /tmp/docker-compose-telegraf-output:/var/data
- /var/run/docker.sock:/var/run/docker-host.sock:ro
depends_on:
- telegraf-agent
- telegraf-consumer
- nats