A homelab dashboard where the hardware is the point

The live master panel on my cluster, with one real alert: a volume nearly full.
Generic Kubernetes dashboards are good at the YAML. In a home lab the thing that actually fails is the hardware. One of my drives warned about itself five days before it died, and nothing joined that warning to what the cluster was doing. So I built a dashboard that does.
What it is
A Go backend and one static HTML file, with no build step. It runs on k0s, k3s or plain Kubernetes. One panel is on screen at a time, a strip of alarms stays on every panel, and the panel is part of the URL, so a reload lands where you were.
| Panel | What it shows |
|---|---|
| Master | cluster CPU and memory, storage gauges, node and ingress lamps, one summary card per panel |
| Hardware | per-node cores, filesystems, SATA controllers and disks, SMART data, network cards |
| Kubernetes | namespaces and services, with scale, restart and ingress on/off buttons |
| Storage | disk pools, then NFS exports, then Longhorn volumes and replicas, kept as separate layers and never summed |
| Reliability | backups, disk health, cluster hygiene |

One node’s hardware card. The amber “CRC” chips are link-error counts on two old SATA disks.
Lamps that don’t lie
Green is fine. Amber is a warning, or something I did on purpose (a service scaled to zero, a route switched off). Red is a fault. Grey means no data, so a source that stopped answering is never shown as healthy.
The SMART counter problem
A reallocated sector never goes back to zero, so a drive with a few would sit red forever. That trains you to ignore red. So each alert has an ACK button that accepts the current counts as a baseline. The drive goes quiet and shows “accepted”, and it turns red again only if one of those counters goes up. Failing SMART status, heat and rising CRC errors alert regardless.
Making it usable by someone else
It started with my cluster’s names baked in. The ongoing job is turning it into one Helm chart that works on any bare-metal cluster with no code edits: optional integrations for Traefik, Backrest and Longhorn that are detected automatically, and a config file where every key is optional. The aim is an endpoint that Claude Code can read as well, so a session can ask the cluster what’s wrong.
Adding ?mock=1 fills a dead API with fake data, which is how I do UI work without touching real machines.
Loading comments…