-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
57 lines (56 loc) 路 1.87 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
services:
glouton:
image: bleemeo/bleemeo-agent
restart: unless-stopped
environment:
# Use environment variable from shell running docker-compose to easily override them.
- GLOUTON_BLEEMEO_ACCOUNT_ID
- GLOUTON_BLEEMEO_REGISTRATION_KEY
- GLOUTON_BLEEMEO_API_BASE
- GLOUTON_BLEEMEO_MQTT_HOST
- GLOUTON_BLEEMEO_MQTT_PORT
- GLOUTON_BLEEMEO_MQTT_SSL
- GLOUTON_BLEEMEO_MQTT_SSL_INSECURE
- GLOUTON_BLEEMEO_API_SSL_INSECURE
- GLOUTON_WEB_LISTENER_PORT
- GLOUTON_JMXTRANS_GRAPHITE_PORT
- GLOUTON_LOGGING_LEVEL
- GLOUTON_LOGGING_PACKAGE_LEVELS
- GLOUTON_CONFIG_FILES
# This file may contain a password but is written in a Docker volume only accessible by jmxtrans and Glouton.
- GLOUTON_JMXTRANS_FILE_PERMISSION=644
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /:/hostroot:ro
- glouton-data:/var/lib/glouton
- jmxtrans-config:/var/lib/jmxtrans
network_mode: "host"
pid: "host"
cap_add:
- SYS_PTRACE # This permission is needed to monitor processes IO and memory used per process.
- SYS_ADMIN # This permission is needed to retrieve the network interface names of containers.
jmxtrans:
image: jmxtrans/jmxtrans
restart: unless-stopped
volumes:
- jmxtrans-config:/var/lib/jmxtrans
environment:
- LD_LIBRARY_PATH=/lib64
network_mode: "host"
fluent-bit:
image: kubesphere/fluent-bit:v2.0.6
restart: unless-stopped
command:
- --watch-path
- /var/lib/glouton/fluent-bit/config
volumes:
- /:/hostroot:ro
- ./etc/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf:ro
- glouton-data:/var/lib/glouton
labels:
- prometheus.io/scrape=true
- prometheus.io/port=2020
- prometheus.io/path=/api/v1/metrics/prometheus
volumes:
glouton-data: {}
jmxtrans-config: {}