diff --git a/homelab/docker-compose.yaml b/homelab/docker-compose.yaml index 38fa45a..ed9ab24 100644 --- a/homelab/docker-compose.yaml +++ b/homelab/docker-compose.yaml @@ -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: diff --git a/homelab/netdata.conf b/homelab/netdata.conf new file mode 100644 index 0000000..210675d --- /dev/null +++ b/homelab/netdata.conf @@ -0,0 +1,5 @@ +[global] +update every = 10 + +[plugin:proc:/proc/net/dev] +disable by default interfaces matching = lo veth* docker* diff --git a/homelab/netdata.yaml b/homelab/netdata.yaml deleted file mode 100644 index 3c0cbb9..0000000 --- a/homelab/netdata.yaml +++ /dev/null @@ -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"