← All guides

Monitoring a home lab with Uptime Kuma: find out before you notice

Operations · 8 min read

Home server rack with green indicator lights beside a small computer on a desk at night
The watcher has to outlive the watched.

Every home lab has the same monitoring system at first: a person, noticing something feels wrong. The media server buffers. A backup job silently stopped three weeks ago. The certificate expired and the dashboard has been showing a browser warning you keep clicking through. By the time a human notices, the failure is old news, and you have no record of when it started, which is the first thing you need to fix it.

Uptime Kuma is the usual cure: a self-hosted monitoring tool that checks your services on a schedule, keeps a history of every check, shows it all on status pages, and notifies you when something goes down. It takes minutes to install, which is exactly the trap, the install is not the project. The project is deciding what to watch, where the watcher lives, and proving the alert reaches you. That is what this guide covers.

Pick the right weight class first

Monitoring tools come in weight classes, and picking wrong hurts in both directions. Uptime Kuma does one job, "is this thing reachable and responding?", for a long list of check types: HTTP(s) (including keyword and JSON-query variants), TCP ports, ping, DNS records, push-based checks, Docker containers, and more. It will not graph your CPU history, correlate logs, or tell you why a service is slow. That is the Prometheus-and-Grafana class of tool: far more powerful, and a part-time job to run well. For a one-person lab, the rule is simple: start with up/down monitoring, because most home lab pain is "it died and nobody noticed," not "the p95 latency regressed." Graduate to metrics later, for specific questions, if they ever come up.

Where Uptime Kuma should live

Here is the placement mistake almost every install guide lets you make: Kuma runs in a container on the main server, and the main server is the most important thing it watches. When that host dies at 2 a.m. your monitoring dies with it, silently. A watcher that cannot outlive the watched is a decoration.

The fix is unglamorous: run Kuma on a small, boring, independent device, an old mini PC, a single-board computer, a second host, anything that does not share fate with your main server. Two hard requirements shape the choice. First, Kuma stores everything in a SQLite database under its /app/data folder, and the project is explicit that this folder must live on a local directory or volume: network filesystems like NFS are not supported, because the file locking SQLite needs cannot be guaranteed there. Put the data on the device's own disk. Second, include that data folder in your backups. Kuma's monitors, history, and settings are all in there; a tiny folder that is cheap to copy and priceless to restore.

Setup, step by step

  1. Start the container. The project's official install runs it in one command: docker run -d --restart=unless-stopped -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:2, or use the Docker Compose template from the project repository if you keep your services in Compose files, which is the tidier habit.
  2. Create the admin account. Browse to the host on port 3001; the first visit redirects to a setup page where you create the admin user. Do this immediately, until then, the setup page is open to anyone who reaches the port. Afterwards, consider enabling two-factor authentication, which Kuma supports, since this dashboard maps your whole network.
  3. Set up notifications before monitors. Counter to every quick-start, do this first. Kuma can notify through Telegram, Discord, Slack, email (SMTP), Pushover, Gotify, and dozens of other services, 90-plus in total. Pick the channel you actually read, add it under Settings → Notifications, and send the built-in test message. Monitors without a working alert path are just a diary.
  4. Add the tier-one monitors (below). For each, Kuma asks for a type, a target, and an interval. A documented, sensible starting configuration for HTTP checks is a 60-second interval; tighter checks (down to 20 seconds are supported) belong on the one or two services you truly cannot wait a minute to hear about.
  5. Attach the notification to every monitor. A monitor created before its notification is attached watches in silence. Verify each one as you create it.
  6. Break something on purpose. Stop a monitored service or unplug a monitored device, and wait. This is a step, not a suggestion, the next section explains what you are proving.

The first monitor set: three tiers

Resist adding everything at once. Monitor in tiers, in this order, tier one catches the failures that take everything else down with them:

TierWhat to monitorTypeWhy it earns its place
1. The foundations Your router; a public address out on the internet; your DNS service (Pi-hole, if you run one) Ping, Ping, DNS or HTTP Distinguishes "the internet is down" from "a service is down", the first question in every outage.
2. The platform Hypervisor web UI; storage/NAS interface; the Docker host itself HTTP(s), TCP If the platform is down, every service on it is down; one alert here replaces twenty confused ones.
3. The services The handful of services you would actually miss today: media, files, photos, password vault HTTP(s), TCP Catches the service-level failures, crashed process, expired certificate (HTTPS monitors can flag cert expiry), that tiers 1 to 2 cannot see.

Everything else, the experimental containers, the toy projects, gets added later, one at a time, when you realize you cared that it was down. A monitor list that grows by evidence stays useful; one built by enthusiasm becomes noise you learn to ignore, which is worse than no monitoring at all.

What success looks like

The deliberate-failure test is the whole ballgame. When you stop that service, four things must happen: Kuma marks the monitor down after its configured retries rather than on a single blip; your phone buzzes with the notification you set up and tested; the dashboard and its uptime history show the gap, so the incident has a start time; and when you restart the service, a recovery notification closes the loop. If any link in that chain fails, you have learned it on a drill instead of during a real outage, which is precisely the difference between having monitoring and having a container named monitoring. Repeat the drill whenever you change notification channels or move Kuma to a new host.

Alerts without alert fatigue

A monitor earns trust by being quiet when things are fine and loud when they are not. Three habits keep it that way. First, let retries do their job: configurations that require several consecutive failed checks before declaring a service down filter out the one-off timeouts that teach you to ignore alerts, a documented example setup uses a 30-second interval with a 5-second timeout and treats only repeated failures as an incident. Second, do not put a 20-second interval on everything; fast checks on foundational gear, slower checks on the long tail. Third, review the list monthly and delete monitors for services you deleted, an alert about a container you removed in June trains you to swipe away the alert that matters in October. An optional public status page, which Kuma can generate from your monitors, is a nice finishing touch: one glanceable link that answers "is it me or is it the lab?" from anywhere.

FAQ

Can Kuma monitor itself? Not meaningfully, a dead host sends no alerts. Its independence from your main server is the mitigation, and a second tiny checker (even a free external uptime service pointed at one lab address) is a reasonable belt-and-suspenders addition.

Should I expose the dashboard to the internet? No. Reach it on your LAN, or through your VPN when away. It is a map of your network and an admin login; it does not need a public audience. Status pages you deliberately publish are the exception, choose what they show.

How much history should I keep? Kuma's database grows with every check; on a small home lab set it stays modest for a long time. When you prune, prune old heartbeat detail, not your monitors or settings, and make sure /app/data is in your backup routine before you need it.

Next: Documenting your home lab →