Remove glances, telegraf and influx. Use grafana for monitoring.

This commit is contained in:
2022-07-12 05:31:08 +02:00
parent df2116eec3
commit 175d5c7695

View File

@@ -8,14 +8,10 @@ networks:
external: false
volumes:
telegraf:
name: telegraf
influx:
name: influx
influx-etc:
name: influx-etc
prometheus:
name: prometheus
grafana:
name: grafana
services:
apc:
@@ -39,56 +35,6 @@ services:
- "3551:3551/udp"
restart: unless-stopped
glances:
image: nicolargo/glances:latest-full
restart: unless-stopped
hostname: glances
container_name: glances
pid: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- "GLANCES_OPT=-w"
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.glances.rule=Host(`glances.lan`)"
- "traefik.http.routers.glances.entrypoints=web"
- "traefik.http.routers.glances.service=glances"
- "traefik.http.services.glances.loadbalancer.server.port=61208"
telegraf:
image: telegraf:alpine
container_name: telegraf
hostname: telegraf
networks:
- monitoring
user: telegraf:998
volumes:
- telegraf:/etc/telegraf/
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- influx
influx:
image: influxdb:alpine
container_name: influx
hostname: influx
volumes:
- influx:/var/lib/influxdb2
- influx-etc:/etc/influxdb2
networks:
- proxy
- monitoring
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.influx.rule=Host(`influx.lan`)"
- "traefik.http.routers.influx.entrypoints=web"
- "traefik.http.routers.influx.service=influx"
- "traefik.http.services.influx.loadbalancer.server.port=8086"
prometheus:
image: cs-registry.ddnss.de/home/prometheus
container_name: prometheus
@@ -142,6 +88,22 @@ services:
- "traefik.http.routers.node-exporter.service=node-exporter"
- "traefik.http.services.node-exporter.loadbalancer.server.port=9100"
grafana:
image: grafana/grafana-oss
container_name: grafana
hostname: grafana
networks:
- proxy
restart: unless-stopped
volumes:
- grafana:/var/lib/grafana
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.rule=Host(`grafana.lan`)"
- "traefik.http.routers.grafana.entrypoints=web"
- "traefik.http.routers.grafana.service=grafana"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
watchtower:
image: containrrr/watchtower
container_name: watchtower