Skip to content
Read everything about Raspberry Pi 5 and other single board Pi PCs, Pi microcontrollers and other news and updates about Pi accessories.
Raspberry Pi Article · 7 min read

Picking a Docker Container Monitor for a Raspberry Pi Home Server

Published RAM and CPU figures for Beszel, Uptime Kuma, Netdata, Glances and Prometheus with Grafana, what each stores on an SD card, and a short Beszel compose file with the cgroup fix and a first alert for a Pi home server.

A small green circuit board in an open black case on a wooden shelf, wired to a blue network cable and a black external drive.

Most monitoring guides build the same stack: Prometheus and Grafana, with cAdvisor collecting the container numbers. On a Raspberry Pi home server, the monitor shares RAM, CPU and the SD card with Jellyfin, the backup jobs and every other container. The other options are Beszel, Uptime Kuma, Glances and Netdata. How much RAM and CPU does each one take on a Pi? And which of them tells you when a container stops?

How much RAM and CPU does each tool use?

Netdata publishes CPU use by Pi model in its edge device guide, covering the Pi 1 B+, Pi 3 B+, Pi 4 B and Pi 5 B. On a typical server it uses under 5% of one CPU core and about 200 MB of RAM by its own figure, and 250 to 350 MB in production. Moving from one-second to five-second collection takes a Pi 5 B from 5.2% to 0.8% of a core, and a Pi 4 B from 11.0% to 3.0%. A Pi 3 B+ drops from 12.0% to 3.1%, and a Pi 1 B+ from 29.1% to 7.6%. Memory stays roughly flat at either interval: the Pi 4 B sits at 36.8 MiB at both.

Memory comes down with a different setting. A Netdata Child sends its metrics to a Parent on another machine, and the Parent takes over machine learning and alert evaluation. Set up that way, a Pi 3 B+ used about 30 MiB of memory, with CPU at about 3% of one core at five-second collection and below 1% at five-minute collection. That lightweight setup also turns off the cgroups collector, which is the one that gathers container stats, so the 30 MiB does not cover container monitoring.

Beszel's README calls it smaller and less resource-intensive than leading solutions. RamNode measured the hub at about 45 MB and the agent alone at about 23 MB at idle, on a VPS rather than a Pi, with three agents reporting and each under 0.1% CPU. A Pi that runs the hub and also has an agent watching it carries both.

Uptime Kuma takes about 80 MB at idle or about 150 MB, in the figures of a Raspberry Pi setup guide at selfhosting.sh. The guide gives the lower figure for a few monitors and the higher one for 50 or more.

A third-party roundup at instapods estimates the Beszel agent lower, at 10 to 15 MB, Uptime Kuma at 30 to 50 MB and Glances at 50 to 100 MB, without naming the hardware behind any of them. Its estimate for the Prometheus and Grafana stack is far higher: 500 MB to more than 1 GB of RAM.

Grafana alone lists 512 MB of memory and one CPU core as its minimum recommended baseline. cAdvisor, which feeds container stats to Prometheus, adds its own load. On one Pi cluster it was reported using more CPU than the containers it monitored. Tuning flags such as -housekeeping_interval brought it from 15 to 16% of CPU down to 5 to 6%.

None of these figures was taken on the same Pi 4 or Pi 5 running the same containers. They put the tools in rough order, but they cannot measure the gap between Beszel and Uptime Kuma on any one board.

The chart marks Netdata's bars as the maker's own figures and the rest as third-party. Beszel appears as two bars from the same VPS measurement, the hub at about 45 MB and the agent alone at about 23 MB, because a Pi that hosts the hub and monitors itself runs both.

Will it wear the SD card?

Netdata's default disk use is about 4 GiB. The lightweight Child from the edge guide works differently: it keeps its history in memory with db = ram and streams to the Parent, so its metric samples stay off the SD card. On a Pi that boots from a card, that Child layout is the gentler of Netdata's two setups.

Prometheus stores everything it scrapes. If neither a retention time nor storage.tsdb.retention.size is set, it keeps 15 days of data by default, at 1 to 2 bytes per sample. New samples go first into a write-ahead log kept in 128MB segments. On a card, a shorter retention time means less data kept. A size cap set with storage.tsdb.retention.size is a target rather than a hard ceiling, because the data on disk can briefly go over it. Prometheus recommends setting that size to at most 80 to 85% of the disk space allocated to it.

Uptime Kuma keeps its data in SQLite, and the selfhosting.sh Pi guide puts the database at about 100 MB after months of use. Beszel stores SQLite data too, and RamNode's benchmark lists about 12 MB of it for 30 days with three servers.

What does each one show, and what can it alert on?

Beszel fits a Docker home server most closely. It is a lightweight monitoring platform with Docker statistics, historical data and alerts, and it keeps a history of CPU, memory and network use for each container. A hub, which is a PocketBase web app, collects data from an agent on each machine you watch. You switch alerts on per system in the systems table, and they cover a system going offline and its CPU, memory and disk. Notifications go out as Shoutrrr URLs set under Settings > Notifications, which covers Discord, Gotify, Ntfy and Telegram among others.

Uptime Kuma checks whether things respond, and one of its monitor types is Docker Containers. Its other monitor types include HTTP, TCP, ping, DNS and push, so one install can watch both the Jellyfin container and the web page it serves. It can send alerts through 90 or more notification services.

Glances monitors Docker, Podman and LXD containers, and its web mode on port 61208 shows an alerts summary.

Netdata has alerts too, and in a Child setup the Parent evaluates them. Prometheus, Grafana and cAdvisor can chart all of this and more, and a ready-made ARM stack for the Pi is available in the Docker-Raspberry-PI-Monitoring project on GitHub.

What is the smallest setup, and how do you switch on the first alert?

For container stats with alerts, Beszel needs one compose file with two services. The hub runs from the henrygd/beszel image on port 8090. The agent runs from henrygd/beszel-agent on the host network, with the Docker socket mounted read-only. This is the core of the layout in Beszel's getting started guide:

services:
  beszel:
    image: henrygd/beszel:latest
    ports:
      - 8090:8090

  beszel-agent:
    image: henrygd/beszel-agent:latest
    network_mode: host
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      KEY: '<key>'
      TOKEN: <token>

The guide's same-host example includes things this file leaves out, among them persistent data volumes for the hub and the agent, a shared Unix socket between hub and agent (with LISTEN and HUB_URL set), APP_URL for the hub, and restart: unless-stopped. The guide's hub mounts ./beszel_data:/beszel_data as a volume, so take that part from the guide.

The KEY and TOKEN values come from the Add System dialog in the hub. Copy them into the file before the agent starts. The agent mounts the host's Docker socket read-only.

If the container charts stay empty, Beszel's docs point to cgroup memory accounting, a problem that is common on the Pi. Run docker stats. If it shows no memory figures for your containers, add these two options to the end of the single line in /boot/firmware/cmdline.txt, then reboot:

cgroup_enable=memory cgroup_memory=1

Once data is coming in, add a notification URL and switch on alerts for the Pi in the systems table. As starting points, RamNode's guide suggests 90% CPU sustained for 5 minutes, 85% memory, 80% disk, and an offline alert that fires immediately. These are that guide's suggestions, not values set for a Pi. Its reason for the CPU window is that sustained high CPU usually indicates a problem.

Uptime Kuma's README starts it with a single docker run command, serving on port 3001:

docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:2

To watch containers, Kuma also needs the host's Docker socket bound into it. The Uptime Kuma wiki warns: "Exposing the Docker socket or TCP port to Uptime Kuma, gives that full control over the Docker daemon on the host."

Beszel fits a Pi 4 or Pi 5 home server if per-container charts and alerts are what you want, with RamNode's VPS figures at about 23 MB for the agent alone and about 45 MB for the hub. For an alert when one container stops, or a check that a service still responds, Uptime Kuma has the Docker Containers monitor type. A Netdata Child needs a second machine as its Parent. Prometheus and Grafana carry the heaviest third-party RAM estimate of the five.

Written by Marek Sobczak

I test how tiny AI models behave on low-cost boards such as the Pi Zero. My reviews focus on speed and memory limits.

7 articles →