A full Prometheus and Grafana stack answers every monitoring question you will ever ask, but it also asks for a lot: a metrics pipeline to operate, dashboards to build, retention to tune, and several hundred megabytes of RAM before you have watched a single graph. Beszel takes the opposite bet — one small hub, one small agent per machine, and a working dashboard a few minutes after docker compose up -d. If your actual need is “tell me when a box fills its disk or a container eats all the CPU,” Beszel is the shortest path there.
This guide wires up the current release, v0.21.1 (published 22 October 2026 on the GitHub releases page), with Docker Compose: a hub on port 8090, agents on every machine you want to watch, Docker container statistics, alert notifications, disk-health reporting, and HTTPS in front of the whole thing.
What Beszel Actually Is
Beszel is an MIT-licensed monitoring platform written in Go, with two components that matter:
- The hub is a web application built on PocketBase. It serves the dashboard, stores historical metrics in SQLite, and manages users, alerts, and backups.
- The agent runs on each monitored system and reports metrics back to the hub over a WebSocket (or, alternatively, the hub can dial the agent over SSH).
The split matters operationally. Because the agent pushes to the hub, you do not need inbound firewall rules on the monitored machines for the WebSocket mode to work — a laptop behind NAT can still report, provided it can reach the hub. Only the hub needs a stable address.
The project’s own README lists what the agent collects: CPU, memory (including swap and ZFS ARC), disk usage and I/O, network throughput, load average, temperatures, fan speeds via /sys/class/hwmon, GPU usage and power draw for Nvidia/AMD/Intel, battery charge, per-container Docker and Podman statistics, S.M.A.R.T. disk health, and ZFS pool and dataset data. That is a genuinely useful set for homelab work, and notably includes things Prometheus needs an exporter, a textfile collector, and some patience to reproduce.
So where does it fit next to what you may already run? Our Grafana + Prometheus guide is the right tool when you need custom metrics, long retention, or cross-service correlation. Uptime Kuma answers “is this URL up?” Beszel answers “what is this machine doing, and is anything about to break?” Most homelabs end up with one of each, and they do not conflict.
Prerequisites
- A host for the hub with Docker Engine and the Compose plugin. The hub is small: expect well under 100 MB of RAM for a handful of systems, since the heavy lifting is SQLite.
- SSH access to each machine you want to monitor, or the ability to run a container there.
- A domain name if you plan to expose the dashboard. Our Caddy guide covers automatic HTTPS; if containers are new to you, start with Docker basics for the homelab.
Beszel does not require a database container, Redis, or any external dependency. Everything the hub needs lives in one directory.
Step 1 — Start the Hub
Create a project directory and a compose file. This is the hub-only shape from the official Hub Installation page, with the port bound to loopback so nothing is exposed before your proxy is ready:
services:
beszel:
image: henrygd/beszel:0.21.1
container_name: beszel
restart: unless-stopped
ports:
- "127.0.0.1:8090:8090"
volumes:
- ./beszel_data:/beszel_data
environment:
APP_URL: https://beszel.example.com
Two notes on that file. APP_URL is not decoration — Beszel uses it to build links in notification emails and to generate agent configuration, so a wrong value produces alerts pointing at localhost. And pinning 0.21.1 instead of latest means a container restart cannot silently upgrade you across a schema change; the docs also support the floating henrygd/beszel tag if you prefer automatic updates.
Start it:
mkdir -p ~/beszel && cd ~/beszel
# save the compose file above as docker-compose.yml
docker compose up -d
docker compose logs --tail=20 beszel
Then open http://127.0.0.1:8090 (or your tunnel/domain) and create the first account. Beszel creates two identities for that initial user: a normal hub user and a separate PocketBase superuser. They are stored in different collections, so changing the hub password does not change the superuser password — a detail worth knowing before you lock yourself out. If you do, the recovery path is a CLI call inside the container:
docker exec beszel /beszel superuser upsert [email protected] 'a-new-password'
That resets the PocketBase login used at /_/; hub logins are managed from the PocketBase users collection.
Step 2 — Add Your First System and Agent
Click Add System in the top right. Beszel shows you a public KEY, a TOKEN, and a ready-to-paste compose file for that specific machine — the fastest route is to copy exactly what the dialog gives you. The canonical agent shape, from the Agent Installation docs, looks like this:
services:
beszel-agent:
image: henrygd/beszel-agent:0.21.1
container_name: beszel-agent
restart: unless-stopped
network_mode: host
volumes:
- ./beszel_agent_data:/var/lib/beszel-agent
- /var/run/docker.sock:/var/run/docker.sock:ro
# - /mnt/disk1/.beszel:/extra-filesystems/disk1:ro
environment:
LISTEN: 45876
KEY: "<public key from the hub>"
HUB_URL: "https://beszel.example.com"
TOKEN: "<token from the hub>"
A few details that trip people up:
network_mode: hostis not optional decoration. The agent listens onLISTEN: 45876for the hub’s SSH-mode connections and needs host networking for accurate per-interface network figures.- Mounting
/var/run/docker.sockread-only is what enables per-container CPU, memory, and network history. Without it you still get host metrics; you just lose the container page. - To watch additional disks, the docs use a bind of the disk into
/extra-filesystems/<name>— note the/.beszelsubdirectory in the official example, which keeps the mount from hiding the disk’s real contents. - Fill
KEYandTOKENfrom the dialog, thendocker compose up -don that machine.
If you would rather not pre-configure anything, Beszel supports a universal token (Settings → Tokens, available since 0.12.0): you can start the agent with just that token and approve it from the hub afterwards. That is a comfortable way to onboard a machine you only reach occasionally.
For a hub and agent on the same Docker host, localhost will not work — the containers sit on different networks. The documented fix is a shared unix socket: mount ./beszel_socket into both containers, set LISTEN: /beszel_socket/beszel.sock on the agent, and enter /beszel_socket/beszel.sock as the Host/IP in the web UI.
Step 3 — Turn On Alerts
Per-metric history is nice; being told about it is the point. Alerts are configured in Settings → Notifications, which uses Shoutrrr URL schemas — the maintained fork of the Watchtower library. Each service is a single URL:
Telegram: telegram://<bot-token>@telegram/?chats=<chat-id>
Discord: discord://<token>@<id>
Gotify: gotify://gotify.example.com/<token>
Ntfy: ntfy://<topic>
Matrix: matrix://user:[email protected]:443/?rooms=!roomid
Slack: slack://<token-a>/<token-b>/<token-c>
Paste the URL into the matching field, save, then enable alerts per system in the systems table — notifications are opt-in per machine, not global. You can set thresholds for CPU, memory, disk, bandwidth, temperature, load, and status changes, plus a “system is down” trigger. Start with a couple of thresholds you actually care about; alert fatigue from a 30-second CPU spike at 3 a.m. is the fastest way to make yourself ignore the whole system.
If you already route homelab notifications somewhere, keep it. Our n8n automation guide can receive a webhook-shaped generic notification and fan it out to chat, a ticket, or a dashboard, which saves adding five separate integrations.
Step 4 — Put It Behind HTTPS
The docs’ Caddy recipe needs two non-default settings: a body-size cap and a long read timeout, because the hub holds long-lived connections to agents:
beszel.example.com {
request_body {
max_size 10MB
}
reverse_proxy 127.0.0.1:8090 {
transport http {
read_timeout 360s
}
}
}
If you serve Beszel under a subpath, set APP_URL to include it and use handle_path in Caddy. More importantly: your proxy must pass WebSocket upgrades, or agents will connect and then immediately drop. Caddy does this by default; hand-written nginx blocks need the Upgrade and Connection headers, which the official reverse proxy page spells out.
Security-wise, three habits carry most of the weight. Keep the dashboard off the open internet unless you need it there — Tailscale is a good answer, and our Tailscale guide covers it. Enable OAuth/OIDC if you already run an identity provider (Authentik works well), and if you do, set DISABLE_PASSWORD_AUTH=true so the weaker path is gone. Finally, consider DISABLE_SSH=true once every agent connects by WebSocket: the hub will stop dialing agents that are legitimately powered off.
Step 5 — Back Up the Data
All hub state lives in ./beszel_data — the SQLite database, users, alert settings, and metric history. Beszel also has built-in automatic backups that can write to disk or to S3-compatible storage (Settings → Backups, admin only), which is the least-effort option and the one to prefer on a VPS.
For a belt-and-braces copy alongside your other services:
cd ~/beszel
docker compose stop beszel
tar czf ~/backups/beszel-$(date +%F).tar.gz beszel_data
docker compose start beszel
Keep that in the same rotation as everything else — our Restic backup guide covers deduplicated, encrypted off-site copies. Metric history is expendable; the PocketBase database holding your users and alert settings is not, so make sure that file specifically survives.
Where Beszel Stops
Being honest about scope saves disappointment. Beszel is not a log aggregator, not a tracing backend, and not a general-purpose time-series database — the API docs explicitly warn that response shapes may change in minor releases. Its retention model is simple, and its query surface is the UI rather than a PromQL endpoint. If you need long-horizon capacity forecasting, dashboards shared across dozens of services, or alerting rules built on compound expressions, keep Prometheus and Grafana. If you want a small, quiet, fast monitor that tells you a disk is 92% full and a container has been restarting, Beszel does that with one container per machine and essentially zero tuning.
FAQ
Is Beszel really lighter than Prometheus plus Grafana? Yes, by a wide margin. There is no metrics pipeline, no separate database, and no dashboard authoring — the hub is a single Go binary on top of SQLite, and the agent is a small Go process. You trade query flexibility for near-zero operational effort.
Do I need to open a port on every monitored machine?
Not in WebSocket mode. The agent dials out to the hub at /api/beszel/agent-connect, so machines behind NAT work fine. SSH mode reverses that direction and does need the agent’s LISTEN port reachable from the hub.
Does the agent need access to the Docker socket?
Only for container-level statistics. Mounting /var/run/docker.sock read-only enables per-container CPU, memory, and network history, and also container inspect and logs when CONTAINER_DETAILS is enabled. Host metrics work without it.
Is it free? Yes. Beszel is MIT-licensed with no paid tier, no license key, and no feature gating in the codebase. There is nothing to activate after install.
Can one hub monitor machines on different networks?
Yes — that is the normal case. Point every agent’s HUB_URL at your public or Tailscale address and approve each system in the hub. Agents only need outbound HTTPS/WSS.
Next Steps
You now have a hub with HTTPS, agents reporting host and container metrics, alerts reaching wherever you read messages, and a backup path for the database. Reasonable next moves: add the S.M.A.R.T. and GPU metrics for the machines that have the hardware, put a small status tile on your Homepage dashboard, and treat Beszel as the “something is wrong right now” layer while Grafana stays the “why, over time” layer. Two small containers, and you stop finding out about full disks from a failed backup.