Keenrig

Server monitoring for self-hosters: what to watch

What to monitor on a self-hosted server: uptime from outside, disk, RAM, certificates and backups. Simple commands, Uptime Kuma for alerts, and what to skip.

Most self-hosted outages are discovered by a user: “the link doesn’t work”. Monitoring exists so you hear it first, ideally before anything breaks. For a small setup you do not need a metrics stack with a dozen dashboards. You need a few checks that catch the failures that actually happen.

What actually goes wrong

  • The disk fills up: logs, images, uploads or a database that grew quietly. Databases and Docker behave badly on a full disk.
  • Memory runs out: an app grows until the kernel’s OOM killer stops something, often not the thing that grew.
  • A certificate expires because renewal failed weeks ago and nobody was told.
  • An app is “running” but not answering — stuck, crash-looping, or failing behind the proxy.
  • The whole server or network is down, which the server cannot report about itself.
  • Backups stopped working a while ago.

Check from outside first

The most valuable check is a request from another machine to each app’s public URL, every minute or so, with an alert when it fails a few times in a row. It catches almost everything on the list above, including the failures a server cannot detect on itself. Run it somewhere other than the server it watches — a second small VPS, a home machine, or a hosted uptime service.

Uptime Kuma

Uptime Kuma is the most popular self-hosted option for this, with around 93,000 GitHub stars as of 10 November 2026, under the MIT licence. It checks HTTP(S) endpoints, keywords on a page, TCP ports, ping, DNS records and Docker containers; it warns before TLS certificates expire; it sends alerts through more than 90 services, including email, Telegram, Discord, Slack and Gotify; and it can publish status pages. Checks can run as often as every 20 seconds.

A sensible first set of monitors:

  • One HTTPS monitor per app, using the app’s health endpoint if it has one (n8n has /healthz).
  • Certificate expiry warnings on those monitors, now that Let’s Encrypt no longer emails reminders.
  • A “push” monitor that your backup job calls when it finishes, so silence means the backup did not run.
  • Alerts to a channel you actually read on your phone.

Two features are easy to overlook. Maintenance windows pause alerts while you update something on purpose, so planned restarts do not page you. And a public status page gives the people who use your apps somewhere to check before they message you — useful even for a family or a five-person team.

Disk, RAM and CPU on the server

For resources, a handful of commands tell you most of what you need when something feels slow:

df -h                       # free space per filesystem
sudo du -xh / --max-depth=2 | sort -h | tail   # what is big
free -m                     # memory and swap
docker stats --no-stream    # CPU and memory per container
journalctl -k | grep -i oom # did the OOM killer run?
docker system df            # space used by images, containers, volumes

For continuous resource graphs and alerts, Netdata is quick to install on one machine, and Prometheus with Grafana and node_exporter is the standard if you are willing to run more moving parts. For a few servers, a disk alert at 80% and a memory alert on sustained high use are worth more than any dashboard.

Logs: the first place to look

When a check fails, logs tell you why. Three commands cover most cases:

docker logs --tail 100 -f <container>   # what the app printed
journalctl -u docker --since "1 hour ago"  # what Docker itself reported
journalctl -p err -b                    # errors from the system since boot

One thing to set up early: Docker’s default json-file log driver does not rotate logs, so a chatty container can slowly fill the disk with its own output. Limit it globally in /etc/docker/daemon.json and restart Docker; the setting applies to containers created afterwards.

{
  "log-driver": "json-file",
  "log-opts": { "max-size": "10m", "max-file": "3" }
}

If you later want logs from several servers in one place, Loki with Grafana or a hosted log service are the usual next steps — but most small setups never need more than the commands above.

What to skip at first

  • Alerts nobody acts on. Every alert should have an obvious next step; otherwise it trains you to ignore alerts.
  • Monitoring the monitor’s own server only. If both live on the same machine, one outage silences everything.
  • Graphing everything. Start with uptime, disk, memory, certificates and backups; add more after an incident shows you what you were missing.

What Keenrig handles, and what it does not

Keenrig watches the apps it installs: catalog entries declare a health check, and an app that stops is started again; configuration that drifts is pulled back to what you set. Certificates for your domains are renewed by the gateway on its own. That removes several items from the list above.

What Keenrig does not do today is alert you. It does not send notifications about failing apps, full disks, certificate problems or backup failures. Pair it with an outside check — and Uptime Kuma is in the Keenrig catalog, so installing it on a second Keenrig server is one click.

curl -fsSL https://get.keenrig.com | sudo sh

Limits

  • An uptime monitor on the same server as your apps cannot tell you that server is down. Put it elsewhere.
  • Uptime checks see what a visitor sees. They do not explain why; for that you still need the logs and the commands above.