Monitoring for jitsi meet

- Therefore split telegraf into two instances one for host and docker and other for network queries (network monitoring)
This commit is contained in:
Florian Zirker 2021-03-28 15:47:32 +02:00
parent 38f5ac4406
commit 30ebabc2ec
3 changed files with 128 additions and 5 deletions

View file

@ -6,7 +6,7 @@ services:
restart: unless-stopped
networks:
- web
- monitoring
- grafana
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.rule=Host(`monitoring.${DOMAIN}`)"
@ -41,7 +41,7 @@ services:
volumes:
- ${VOLUMES_PATH}/grafanadb:/var/lib/postgresql/data
networks:
- monitoring
- grafana
restart: unless-stopped
environment:
- POSTGRES_DB=grafana
@ -56,7 +56,6 @@ services:
restart: unless-stopped
networks:
- web
- monitoring
environment:
- INFLUXDB_MONITOR_STORE_ENABLED=false
volumes:
@ -78,7 +77,7 @@ services:
##################################################################
# here starts data collection
telegraf:
telegraf_host:
image: telegraf:1.18
restart: unless-stopped
environment:
@ -91,7 +90,7 @@ services:
env_file:
- ./.env # set environments into container
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
- ./telegraf_host.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /var/run/utmp:/var/run/utmp:ro
- /:/hostfs:ro
@ -101,7 +100,24 @@ services:
depends_on:
- influxdb
telegraf_net:
image: telegraf:1.18
restart: unless-stopped
env_file:
- ./.env # set environments into container
volumes:
- ./telegraf_net.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- monitoring
labels:
- "docker.group=monitoring"
depends_on:
- influxdb
networks:
grafana:
monitoring:
external: true
web:
external: true