Remove netdata, prometheus and grafana. Extend telegraf to monitor docker stats.
This commit is contained in:
@@ -25,39 +25,6 @@ volumes:
|
|||||||
name: grafana-data
|
name: grafana-data
|
||||||
|
|
||||||
services:
|
services:
|
||||||
netdata:
|
|
||||||
image: netdata/netdata:stable
|
|
||||||
container_name: netdata
|
|
||||||
hostname: netdata.lan
|
|
||||||
restart: unless-stopped
|
|
||||||
cap_add:
|
|
||||||
- SYS_PTRACE
|
|
||||||
environment:
|
|
||||||
- NETDATA_CLAIM_TOKEN=whnDRS4-Z0fJH9P2Y01jHXeBKb6cpzIxsRsFFiuCbE0u_QhDciI4V8NrftAmu8YnWDd9KRX5-bGlU8G_s7F-Ux6lYVkVtdqdjXRPfiTMm4JN8wpJGnm2CedKAP7FiFIp8spaLx4
|
|
||||||
- NETDATA_CLAIM_URL=https://app.netdata.cloud
|
|
||||||
- NETDATA_CLAIM_ROOMS=a427cb5f-a572-4bbf-90d8-ad97144960c1
|
|
||||||
security_opt:
|
|
||||||
- apparmor:unconfined
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
- internal
|
|
||||||
volumes:
|
|
||||||
- netdataconfig:/etc/netdata
|
|
||||||
- netdatalib:/var/lib/netdata
|
|
||||||
- netdatacache:/var/cache/netdata
|
|
||||||
- /etc/passwd:/host/etc/passwd:ro
|
|
||||||
- /etc/group:/host/etc/group:ro
|
|
||||||
- /proc:/host/proc:ro
|
|
||||||
- /sys:/host/sys:ro
|
|
||||||
- /etc/os-release:/host/etc/os-release:ro
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.netdata.rule=Host(`netdata.lan`)"
|
|
||||||
- "traefik.http.routers.netdata.entrypoints=web"
|
|
||||||
- "traefik.http.routers.netdata.service=netdata"
|
|
||||||
- "traefik.http.services.netdata.loadbalancer.server.port=19999"
|
|
||||||
|
|
||||||
apc:
|
apc:
|
||||||
build: .
|
build: .
|
||||||
container_name: apc
|
container_name: apc
|
||||||
@@ -86,8 +53,10 @@ services:
|
|||||||
container_name: telegraf
|
container_name: telegraf
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
user: telegraf:998
|
||||||
volumes:
|
volumes:
|
||||||
- telegraf:/etc/telegraf/
|
- telegraf:/etc/telegraf/
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
depends_on:
|
depends_on:
|
||||||
- influxdb
|
- influxdb
|
||||||
|
|
||||||
@@ -108,39 +77,3 @@ services:
|
|||||||
- "traefik.http.routers.influx.service=influx"
|
- "traefik.http.routers.influx.service=influx"
|
||||||
- "traefik.http.services.influx.loadbalancer.server.port=8086"
|
- "traefik.http.services.influx.loadbalancer.server.port=8086"
|
||||||
|
|
||||||
prometheus:
|
|
||||||
image: prom/prometheus
|
|
||||||
container_name: prometheus
|
|
||||||
volumes:
|
|
||||||
- prometheus-config:/etc/prometheus
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
- internal
|
|
||||||
restart: unless-stopped
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.prometheus.rule=Host(`prometheus.lan`)"
|
|
||||||
- "traefik.http.routers.prometheus.entrypoints=web"
|
|
||||||
- "traefik.http.routers.prometheus.service=prometheus"
|
|
||||||
- "traefik.http.services.prometheus.loadbalancer.server.port=9090"
|
|
||||||
|
|
||||||
grafana:
|
|
||||||
image: grafana/grafana-oss
|
|
||||||
container_name: grafana
|
|
||||||
hostname: grafana.lan
|
|
||||||
restart: unless-stopped
|
|
||||||
depends_on:
|
|
||||||
- influxdb
|
|
||||||
volumes:
|
|
||||||
- grafana-data:/var/lib/grafana
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
- internal
|
|
||||||
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"
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user