Compare commits
No commits in common. "b3c96687c3982835f2af7b7191ba3cc744ec51f1" and "c770df59f771bdc9288b9d2a18f8ef857e8cf389" have entirely different histories.
b3c96687c3
...
c770df59f7
7 changed files with 41 additions and 49 deletions
|
@ -70,6 +70,46 @@ services:
|
||||||
- "traefik.docker.network=web"
|
- "traefik.docker.network=web"
|
||||||
- "docker.group=monitoring"
|
- "docker.group=monitoring"
|
||||||
|
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# here starts data collection
|
||||||
|
|
||||||
|
telegraf_host:
|
||||||
|
image: telegraf:1.18
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- HOST_MOUNT_PREFIX=/hostfs
|
||||||
|
- HOST_PROC=/hostfs/proc
|
||||||
|
- HOST_SYS=/hostfs/sys
|
||||||
|
- HOST_ETC=/hostfs/etc
|
||||||
|
- HOST_VAR=/hostfs/var
|
||||||
|
- HOST_RUN=/hostfs/run
|
||||||
|
volumes:
|
||||||
|
- ./telegraf/telegraf_host.conf:/etc/telegraf/telegraf.conf:ro
|
||||||
|
- /var/run/utmp:/var/run/utmp:ro
|
||||||
|
- /:/hostfs:ro
|
||||||
|
network_mode: "host"
|
||||||
|
labels:
|
||||||
|
- "docker.group=monitoring"
|
||||||
|
depends_on:
|
||||||
|
- influxdb
|
||||||
|
|
||||||
|
|
||||||
|
telegraf_net:
|
||||||
|
image: telegraf:1.18
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./telegraf/telegraf_net.conf:/etc/telegraf/telegraf.conf:ro
|
||||||
|
networks:
|
||||||
|
- monitoring
|
||||||
|
- dockersocket
|
||||||
|
labels:
|
||||||
|
- "docker.group=monitoring"
|
||||||
|
depends_on:
|
||||||
|
- influxdb
|
||||||
|
dns:
|
||||||
|
- 192.168.16.5
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
monitoring:
|
monitoring:
|
||||||
web:
|
web:
|
||||||
|
|
|
@ -44,7 +44,7 @@ services:
|
||||||
- web
|
- web
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.whoami.rule=Host(`whoami.${HOSTNAME}`)"
|
- "traefik.http.routers.whoami.rule=Host(`whoami.${DOMAIN}`)"
|
||||||
- "traefik.http.routers.whoami.entrypoints=web"
|
- "traefik.http.routers.whoami.entrypoints=web"
|
||||||
- "traefik.http.services.whoami.loadbalancer.server.port=80"
|
- "traefik.http.services.whoami.loadbalancer.server.port=80"
|
||||||
- "docker.group=proxy"
|
- "docker.group=proxy"
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
version: "3.3"
|
|
||||||
services:
|
|
||||||
|
|
||||||
host:
|
|
||||||
image: telegraf:1.18
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
- HOST_MOUNT_PREFIX=/hostfs
|
|
||||||
- HOST_PROC=/hostfs/proc
|
|
||||||
- HOST_SYS=/hostfs/sys
|
|
||||||
- HOST_ETC=/hostfs/etc
|
|
||||||
- HOST_VAR=/hostfs/var
|
|
||||||
- HOST_RUN=/hostfs/run
|
|
||||||
volumes:
|
|
||||||
- ./telegraf_host.conf:/etc/telegraf/telegraf.conf:ro
|
|
||||||
- /var/run/utmp:/var/run/utmp:ro
|
|
||||||
- /:/hostfs:ro
|
|
||||||
network_mode: "host"
|
|
||||||
labels:
|
|
||||||
- "docker.group=telegraf"
|
|
||||||
|
|
||||||
net:
|
|
||||||
image: telegraf:1.18
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- ./telegraf_net.conf:/etc/telegraf/telegraf.conf:ro
|
|
||||||
networks:
|
|
||||||
- dockersocket
|
|
||||||
labels:
|
|
||||||
- "docker.group=telegraf"
|
|
||||||
dns:
|
|
||||||
- ${LOCAL_DNS_SERVER}
|
|
||||||
|
|
||||||
networks:
|
|
||||||
dockersocket:
|
|
||||||
external: true
|
|
|
@ -1,12 +0,0 @@
|
||||||
[meta]
|
|
||||||
dir = "/var/lib/influxdb/meta"
|
|
||||||
|
|
||||||
[data]
|
|
||||||
dir = "/var/lib/influxdb/data"
|
|
||||||
wal-dir = "/var/lib/influxdb/wal"
|
|
||||||
max-concurrent-compactions = 1
|
|
||||||
|
|
||||||
[monitor]
|
|
||||||
store-enabled = false
|
|
||||||
store-database = "_internal"
|
|
||||||
store-interval = "10s"
|
|
Loading…
Add table
Add a link
Reference in a new issue