Real-Time Monitoring with Netdata
Published Jan. 25, 2026, 9:19 a.m. by wielandtech
The homelab page used to be a list of what's running and some hardware specs. Now it shows live metrics from the cluster, refreshing every second: CPU, memory, network, disk I/O, temps, running pods, healthy vs total deployments, and uptime.
All of it comes from Netdata agents on the three nodes. I've had Netdata running next to Prometheus and Grafana for troubleshooting for a while, I just never made any of it public. For simple numbers like these, its API is a lot less work than writing Prometheus queries.
The backend is a Django endpoint at /api/metrics/ that queries Netdata, aggregates across nodes, and caches the result for a second. The frontend polls it every second. I use API v1 for the per-node system metrics and v2 for anything cluster-wide, since v2's context aggregation does most of the work for you. The k8s_state collector covers pod and deployment counts.
The fiddly part was aggregation. Network traffic has to be summed across nodes, CPU averaged, and for uptime I take the minimum so it shows time since the most recent reboot. If Netdata can't be reached, the page falls back to the last cached values instead of breaking. There are also warning and critical colors for when CPU or memory gets high, which so far mostly go off when I'm building images.
While I was at it I also put up a weather station page. That data goes Home Assistant → Prometheus → Django, updates every minute, and has a wind compass you can play with plus some historical charts.
It's not real monitoring, and nobody gets paged when it goes red. It's just fun to watch. I might add historical charts for the cluster next.
Please log in to add a comment.