18 Nov 2026 · 5 min read · Systems
Monitoring with Beszel
For a long time my monitoring was a shell script that pinged a few URLs and a df -h I remembered to run. It does one job: it tells me when a service stops an…
For a long time my monitoring was a shell script that pinged a few URLs and a df -h I remembered to run. It does one job: it tells me when a service stops answering. It does not tell me that the disk went from 61% to 92% while every check stayed green. I found that out from a failed backup, twice.
One hub container with a web UI and history, one small agent per machine, alerts when a number crosses a line. The agent reports CPU, memory, disk, network and per-container usage; the hub keeps the history in SQLite. No query language, no custom dashboards. If you want request latency next to CPU, this is the wrong tool.
Two containers, one socket
The hub is a compose service with a volume and a loopback port. The agent is the same idea with the Podman socket and a key.
services:
beszel:
image: docker.io/henrygd/beszel:latest
container_name: beszel
restart: unless-stopped
ports:
- "127.0.0.1:8090:8090" # behind Caddy as beszel.home
volumes:
- ./beszel_data:/beszel_data
environment:
APP_URL: "https://beszel.home"
beszel-agent:
image: docker.io/henrygd/beszel-agent:latest
container_name: beszel-agent
restart: unless-stopped
network_mode: pasta # so the agent sees the host's interfaces
volumes:
- ./beszel_agent_data:/var/lib/beszel-agent
- /run/user/1000/podman/podman.sock:/var/run/docker.sock:ro
environment:
LISTEN: 45876
HUB_URL: http://localhost:8090
TOKEN: "${BESZEL_TOKEN}"
KEY: "${BESZEL_KEY}"Two details matter more than the rest. The socket mount is read-only: I'd rather the agent fail to do something than succeed at doing something. And the agent runs with host networking, because an agent in a bridge network reports memory for the wrong machine.
The socket path has the UID in it. On a different account it's $XDG_RUNTIME_DIR/podman/podman.sock, and if you're not rootless the path is different again. The hub prints an exact install command when you add a system; copy that rather than trusting a blog post, including this one.
What the first month caught
The disk graph paid for the afternoon. Nothing was down, nothing was slow. The line for / just climbed a little every day, which you see on a graph and never see in a monthly df -h. A chatty container with no log limit had grown its JSON logs to something silly. A few lines in the compose file fixed it:
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"A restart loop was second. One service was failing, dying and coming back every minute or so. My uptime check on its HTTP endpoint said green, because the check ran every two minutes and the container was up for half of that. Beszel showed it flipping to stopped between restarts, and the memory line was a sawtooth.
The third was a memory leak. Memory climbed in steps rather than a straight line. The alert fired at an inconvenient hour. Nothing crashed; I put the container on a nightly restart as a stopgap and started reading its issue tracker.
The alerts I kept
I turned everything on with quiet thresholds, then muted most of it inside a month. Alert fatigue isn't a personality problem, it's a design problem: an alert you ignore teaches you to ignore the channel, and then the real one arrives in a stream you've stopped reading.
Off: bandwidth, because a backup job tripped it at around 10 p.m.; CPU, because every build spikes it; per-container memory, because containers restart and the number afterwards means nothing.
Wrong: the offline alert. I disabled it for a month after a scheduled reboot tripped it once. That's the alert that would have saved me the most time. It's back on.
The boring part
Back up the hub's data directory, not just the SQLite file. It also holds the key material the agents are pinned to, and copying a folder is cheaper than working out which file mattered. The way I test a copy is to restore it into a second container on another port, which proves the archive isn't decorative.
Don't expose the hub publicly without auth, and honestly not even with it: it knows every host in the lab and can ask every agent about containers. Caddy with the internal CA (the reverse proxy post) and a LAN-only listener is enough for a house. The superuser account is not optional; it's the thing between the panel and anyone who finds the port.
Keep the agent in step with the hub. It's the piece that talks to Podman, so it's most likely to be surprised by an upgrade or a socket that moved. I do both in the same sitting.
None of this is impressive, which is the point. One dashboard, two containers, a handful of thresholds, ten minutes a month. The tab stays open on my phone. What I want isn't a notification; it's being able to answer "when did this start" without SSHing in at night.