Re-enable netdata for now

This commit is contained in:
Neale Pickett 2022-02-28 18:01:25 -07:00
parent 07c2ce3e20
commit 2bf259f020
3 changed files with 28 additions and 16 deletions

View File

@ -137,6 +137,25 @@ services:
networks:
- hostnet
# Drop this in to get a netdata container.
# It was using about 10% on my rPi and I don't really need it, so I took it out
netdata:
image: netdata/netdata
volumes:
- type: bind
source: /
target: /host
read_only: true
configs:
- source: netdata.conf
target: /etc/netdata/netdata.conf
deploy:
labels:
traefik.http.routers.netdata.rule: "PathPrefix(`/netdata`)"
traefik.http.middlewares.netdata-striparoo.stripprefix.prefixes: "/netdata"
traefik.http.routers.netdata.middlewares: netdata-striparoo
traefik.http.services.netdata.loadbalancer.server.port: "19999"
samba:
image: dperson/samba
volumes:
@ -165,6 +184,10 @@ services:
target: 445
configs:
netdata.conf:
file: netdata.conf
name: netdata.conf-v4
secrets:
password:

5
homelab/netdata.conf Normal file
View File

@ -0,0 +1,5 @@
[global]
update every = 10
[plugin:proc:/proc/net/dev]
disable by default interfaces matching = lo veth* docker*

View File

@ -1,16 +0,0 @@
# Drop this in to get a netdata container.
# It was using about 10% on my rPi and I don't really need it, so I took it out
netdata:
image: netdata/netdata
volumes:
- type: bind
source: /
target: /host
read_only: true
deploy:
labels:
traefik.enable: "true"
traefik.http.routers.netdata.rule: "PathPrefix(`/netdata`)"
traefik.http.middlewares.striparoo.stripprefix.prefixes: "/netdata"
traefik.http.routers.netdata.middlewares: striparoo
traefik.http.services.netdata.loadbalancer.server.port: "19999"