Tutorials 15 min read

Monitor Your Homelab in 2026: Uptime Kuma + Grafana + Alerts, and When to Pick Gatus, Healthchecks or Netdata

2026 tutorial for monitoring a homelab with Uptime Kuma, Prometheus, node_exporter and Grafana via Docker, Telegram alerts included. Plus when to choose Gatus (checks written in YAML), Healthchecks (cron jobs) or Netdata (real time, zero configuration).

S By Selfhostr · no sponsored content
Monitor Your Homelab in 2026: Uptime Kuma + Grafana + Alerts, and When to Pick Gatus, Healthchecks or Netdata
This article may contain affiliate links (no extra cost to you, it funds the site). As an Amazon Associate, Selfhostr earns from qualifying purchases. See the disclosure.

👍 What we like

  • Complete self-hosted stack using only Docker containers
  • Combines availability monitoring with deep system metrics
  • Instant Telegram alerts for proactive issue notification
  • Visual dashboards via Grafana for easy data interpretation

👎 What to watch

  • Requires manual configuration of Prometheus scrape targets
  • Initial setup exposes ports directly before reverse proxy config
  • Admin password must be manually changed in compose file
  • Telegram integration requires external account setup
📑 Contents ▾

Monitoring a homelab means answering two different questions: is the service responding, and how is the machine that hosts it doing? Uptime Kuma handles the first, Prometheus + node_exporter + Grafana the second. This guide installs all four in a single docker-compose.yml, with Telegram alerts, in 30 to 45 minutes. If your need lies elsewhere (knowing that a cron job actually ran, checking the content of an API’s responses, seeing a machine in real time without configuring anything), Healthchecks, Gatus and Netdata are covered after the tutorial.

Which tool answers which question

Your questionToolHow it works
Is my service responding?Uptime KumaActive probes (HTTP(s), TCP, ping, DNS, Docker container) set up in a web interface
How are CPU, RAM, disk and network trending?Prometheus + node_exporter + GrafanaPeriodic metric collection, history, dashboards, threshold alerts
Did last night’s backup run?Healthchecks, or an Uptime Kuma Push monitorThe script calls a URL when it finishes; if the call never arrives, the alert fires
Does my API return the right answer?GatusConditions on the HTTP code, the JSON body and the response time, written in YAML
What is happening on this machine right now?NetdataOne agent per host, per-second metrics, services detected automatically

Prerequisites

  • A Linux server or homelab with Docker and Docker Compose installed. See the Docker installation in our Caddy reverse proxy + Docker guide.
  • Ideally, a machine dedicated to monitoring: a small node is enough (see “Which machine to run the monitoring on” below).
  • A reverse proxy (Caddy) if you want to expose the interfaces over HTTPS, which is recommended.
  • A Telegram account and app, to receive alerts.
  • 30 to 45 minutes.

Stack Architecture

  • node_exporter exposes the machine’s system metrics (CPU, RAM, disk, network) in Prometheus format, on port 9100.
  • Prometheus collects (“scrapes”) them at a regular interval and keeps them in its time-series database.
  • Grafana queries Prometheus to display the dashboards and trigger threshold alerts.
  • Uptime Kuma runs separately: it sends its own probes (HTTP, TCP, ping, DNS) and keeps their results in its own volume, without going through Prometheus.

Step 1: Prepare the directory structure and docker-compose

Create a working directory:

mkdir -p ~/monitoring && cd ~/monitoring
mkdir -p prometheus

Create the composition file:

nano docker-compose.yml
services:
  uptime-kuma:
    image: louislam/uptime-kuma:1
    container_name: uptime-kuma
    restart: unless-stopped
    volumes:
      - uptime-kuma-data:/app/data
    ports:
      - "3001:3001"

  node-exporter:
    image: prom/node-exporter:latest
    container_name: node-exporter
    restart: unless-stopped
    command:
      - '--path.rootfs=/host'
    pid: host
    volumes:
      - '/:/host:ro,rslave'
    ports:
      - "9100:9100"

  prometheus:
    image: prom/prometheus:latest
    container_name: prometheus
    restart: unless-stopped
    volumes:
      - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
      - prometheus-data:/prometheus
    command:
      - '--config.file=/etc/prometheus/prometheus.yml'
      - '--storage.tsdb.retention.time=30d'
    ports:
      - "9090:9090"

  grafana:
    image: grafana/grafana-oss:latest
    container_name: grafana
    restart: unless-stopped
    environment:
      - GF_SECURITY_ADMIN_PASSWORD=ChangeThisPassword
    volumes:
      - grafana-data:/var/lib/grafana
    ports:
      - "3000:3000"
    depends_on:
      - prometheus

volumes:
  uptime-kuma-data:
  prometheus-data:
  grafana-data:

Security: Change GF_SECURITY_ADMIN_PASSWORD to a strong password. The ports are exposed here in plain text for setup; in production, place these services behind an HTTPS reverse proxy and do not publish the ports directly to the Internet (remove the ports: sections once you have routed them through Caddy on a shared Docker network).

Step 2: Configure Prometheus

Prometheus needs to know what to collect. Create its config file:

nano ~/monitoring/prometheus/prometheus.yml
global:
  scrape_interval: 15s
  evaluation_interval: 15s

scrape_configs:
  - job_name: 'prometheus'
    static_configs:
      - targets: ['localhost:9090']

  - job_name: 'node'
    static_configs:
      - targets: ['node-exporter:9100']

Since all containers are on the same Docker network (the default project network for compose), Prometheus reaches node-exporter by its service name. Start the stack:

docker compose up -d

Verify that everything starts:

docker compose ps

All four containers should be running.

Step 3: Verify metric collection

Verify that node_exporter is exposing its metrics:

curl -s http://localhost:9100/metrics | head -5

You will get metric lines in Prometheus format. Then, open Prometheus in your browser at http://SERVER_IP:9090, go to Status > Targets: the node target should be in state UP. If it is DOWN, check the service name and port in prometheus.yml.

Step 4: Configure Uptime Kuma

Open http://SERVER_IP:3001. On first launch, create the admin account (username + strong password).

Then add your first probes (“monitors”):

  1. Click Add New Monitor.
  2. HTTP(s) Type for a website or web service: enter the URL (e.g., https://cloud.example.com), a descriptive name, and the check interval (60s is a good default).
  3. TCP Port Type for a service without a web interface (e.g., a database): specify the host and port.
  4. Ping Type to check if a machine responds on the network.

Uptime Kuma immediately displays an availability history, uptime percentage, and response time. Create a public status page via Status Pages if you want to share the status of your services.

Tip: For a scheduled task to report that it ran successfully, create a Push monitor. Your script calls the provided URL at the end; if the call does not arrive within the allotted time, Uptime Kuma alerts you. That is what catches a silently failed backup, for example the restic script from our 3-2-1 backup tutorial.

Step 5: Configure Grafana

Open http://SERVER_IP:3000 and log in with admin and the password defined in the compose file.

Add Prometheus as a data source

  1. Menu Connections > Data sources > Add data source.
  2. Choose Prometheus.
  3. In Prometheus server URL, enter http://prometheus:9090 (container name resolution on the Docker network).
  4. Click Save & test: you should see “Successfully queried the Prometheus API”.

Import a ready-made dashboard

No need to build everything by hand: the community publishes ready-made dashboards. For node_exporter, import the Node Exporter Full dashboard (ID 1860):

  1. Menu Dashboards > New > Import.
  2. Enter ID 1860 in the field, click Load.
  3. Select your Prometheus data source, then Import.

You get a complete dashboard: CPU usage, memory, disk space, I/O, network traffic, system load.

Step 6: Set up Telegram alerts

We configure Telegram in both tools: Uptime Kuma for services that go down, Grafana for system thresholds.

Create a Telegram bot

  1. In Telegram, search for @BotFather, start it, and send /newbot.
  2. Choose a name and username for the bot. BotFather gives you a token (something like 123456789:AAH...).
  3. Start a conversation with your new bot (send it any message).
  4. Retrieve your chat ID: open in a browser https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates and locate the chat.id field in the JSON response.

Alerts in Uptime Kuma

  1. In Uptime Kuma: Settings > Notifications > Setup Notification.
  2. Type Telegram, paste the Bot Token and Chat ID.
  3. Click Test to receive a verification message, then Save.
  4. Edit your monitors and check this notification: you will be alerted on every UP → DOWN transition and upon recovery.

System alerts via Grafana

To be notified when disk usage exceeds 85% or RAM exceeds 90%, create an alert rule in Grafana:

  1. Alerting > Contact points > Add contact point, type Telegram, enter token and chat ID, test.
  2. Alerting > Alert rules > New alert rule. Define a PromQL query, for example for root disk usage:
100 - ((node_filesystem_avail_bytes{mountpoint="/"} * 100) / node_filesystem_size_bytes{mountpoint="/"})
  1. Set the condition “IS ABOVE 85” over a 5-minute window, associate the Telegram contact point, and save.

You will now receive a message as soon as a critical threshold is crossed, before it becomes an incident.

Stack Verification

Run through the checklist:

# All four services are running
docker compose ps

# Prometheus has the node target UP (the returned value ends with "1")
curl -sG 'http://localhost:9090/api/v1/query' --data-urlencode 'query=up{job="node"}' | grep -o '"value":\[[^]]*\]'

# node_exporter responds
curl -sI http://localhost:9100/metrics | head -1

Perform a real test: intentionally stop a service monitored by Uptime Kuma (docker stop <service>), wait for the check interval, and confirm that you receive the Telegram alert, followed by the recovery message after restart.

Best Practices and Security

  • Do not expose ports in plain text. Place Grafana, Prometheus, and Uptime Kuma behind your Caddy reverse proxy over HTTPS. Prometheus, in particular, has no native authentication: it should never be publicly accessible.
  • Back up the volumes. Uptime Kuma configurations, Grafana dashboards, and Prometheus history live in Docker volumes. Include them in your backup strategy (see encrypted backups with restic).
  • Monitor remote machines. Install node_exporter on each machine in your homelab and add them as targets in prometheus.yml. Route inter-machine scraping through a WireGuard VPN rather than in plain text.
  • Define reasonable retention. --storage.tsdb.retention.time=30d prevents Prometheus from filling the disk. Increase it if you need long-term history, while watching disk space.
  • Useful alerts, not noisy ones. Too many alerts kill alerting. Reserve notifications for actionable events (service down, full disk, expiring certificate) and keep the rest in dashboards.

Uptime Kuma, Gatus or Healthchecks: probe, assert or wait for a signal

All three tools watch availability, but not in the same way. The right choice depends on what you are watching: a web service, the content of an API, or a scheduled task.

Uptime Kuma: active probes set up with the mouse

This is the tutorial’s tool. Everything happens in the web interface: HTTP(s), TCP, ping, DNS, Push, Docker container or Steam game server probes, notifications to Telegram, Discord, Slack, email (SMTP), Gotify, Pushover and others, public status pages. It stores its data in SQLite by default; version 2.0 adds MariaDB/MySQL for heavier setups (the compose file above uses the branch 1 image). Its content checks stay simple: status code, keyword, JSON query, latency. The Push monitor covers cron jobs, but with fewer settings than Healthchecks.

Gatus: configuration in YAML, versioned in Git

Gatus, written in Go, has no interface for creating probes: everything is declared in a YAML file, which lets you version your monitoring in Git alongside the rest of your infrastructure. Its strength is assertions. You don’t just check that an endpoint returns 200, but also that the response time stays under 500 ms or that a specific JSON field has the expected value:

endpoints:
  - name: nextcloud
    url: "https://cloud.example.com/status.php"
    interval: 60s
    conditions:
      - "[STATUS] == 200"
      - "[RESPONSE_TIME] < 500"
      - "[BODY].installed == true"

Its interface shows endpoint status, response times and history, more austerely than Uptime Kuma. It can keep its results in memory, in SQLite or in PostgreSQL, and it is very lightweight. The trade-off: you have to write and maintain the YAML.

Healthchecks: the alert when nothing arrives

Healthchecks probes nothing. Each “check” has a unique URL, an expected period and a grace time; your task calls that URL on every successful run, and a missing call within the deadline triggers the alert. It will never tell you a site is slow, but it will tell you the backup script didn’t run last night. Using it takes one line at the end of a script:

curl -fsS -o /dev/null https://YOUR_HEALTHCHECKS_INSTANCE/ping/CHECK_UUID

The interface is plain and the API complete. The grace time avoids false alerts when a task finishes a little later than usual.

CriterionUptime KumaGatusHealthchecks
PrincipleActive probesActive probes with assertionsWaiting for a signal (heartbeat)
ConfigurationWeb interfaceYAML fileWeb interface + API
Language, licenseNode.js, MITGo, Apache-2.0Python/Django, BSD-3
StorageSQLite, MariaDB/MySQL (v2)Memory, SQLite, PostgreSQLPostgreSQL, MySQL
Content checksCode, keyword, JSON query, latencyCode, body, JSON fields, response timeNot applicable
Getting startedThe simplestRequires writing YAMLSimple

In practice, start with Uptime Kuma. Add Healthchecks once several critical scheduled tasks are running (backups, syncs, maintenance scripts), and Gatus if you expose APIs whose responses need checking, or if you want monitoring described in Git. All three can run on the same small machine.

Grafana or Netdata: centralized history or real time with zero configuration

Grafana collects nothing itself. It displays and alerts on data from a time-series database: Prometheus in this tutorial, but also InfluxDB, TimescaleDB or Elasticsearch. This stack is the right one for centralizing several machines, keeping long-term history, correlating events and building your own dashboards. It comes at a cost: learning PromQL, maintaining three components (Prometheus, exporters, Grafana), and giving Prometheus a fast disk (SSD or NVMe rather than a hard drive), since its storage grows with the number of targets and the retention period.

Netdata approaches the problem the other way round. An agent installed on each host automatically collects thousands of system and application metrics (Nginx, MySQL, PostgreSQL, Redis, Docker…), every second, with no initial configuration. The dashboard is available on port 19999 right after installation, with local alerts already defined. It is the tool for immediate diagnosis: understanding what is happening on a machine right now. Its limits are local history, bounded by the space you allocate to it in netdata.conf (for long, centralized history, have Prometheus scrape it, since Prometheus can read its metrics), and managing many servers, which goes through Netdata Cloud: optional, with a free tier and paid advanced features. By default, the agent does not authenticate connections: never publish port 19999 to the Internet; go through a reverse proxy with authentication or through a VPN.

Uptime Kuma doesn’t measure the machine’s health. A service can answer pings while the server’s disk is filling up or the CPU is maxed out: only Netdata or Grafana show it.

Depending on your situation:

  • A few services on one or two machines, little time to spend on it: Uptime Kuma for the services, Netdata on each host for machine health (temperature, RAM, disk). Prometheus and Grafana would be oversized for this need.
  • Several machines, need for history and fine-grained alerts: this tutorial’s stack, plus Uptime Kuma for availability checks and status pages. Netdata can be added on critical nodes for diagnosis during an incident.
  • A very constrained machine (small VPS, busy mini PC): Uptime Kuma + Netdata without Netdata Cloud, enabling only the collectors you need. The Prometheus stack is the most demanding in RAM and disk writes.

All three can also coexist: Netdata as the local agent, Prometheus for retention (it scrapes node_exporter and Netdata), Grafana for the overview, Uptime Kuma for checks seen from the outside. You then go from the “service down” alert (Kuma) to “why?” (Netdata) and then to “since when?” (Grafana).

FAQ

What load does this stack put on the server?

Modest for a homelab. node_exporter is negligible and Uptime Kuma gets by with about 100 MB of RAM. Prometheus and Grafana consumption depends on the number of targets and the retention; the main cost is the disk space used by Prometheus history, controlled by the retention period.

How do I monitor my Docker containers themselves?

Add cAdvisor to the stack: it exposes per-container metrics (CPU, RAM, network, I/O) that Prometheus collects just like node_exporter’s. Then import a Grafana dashboard dedicated to Docker containers (several are available in the gallery). Netdata, for its part, detects containers on its own.

Do alerts work if the monitoring server itself goes down?

No: a system cannot report its own failure, nor an Internet box outage that cuts it off. You need external monitoring, for example a second Uptime Kuma instance on another machine or a small VPS, watching the monitoring server and your public services. The next section explains where to put this second instance and what it should watch.

Which machine to run the monitoring on

At home, the stack runs 24/7: a low-power mini PC is enough in most cases. Two common picks: the Beelink Mini S12 Pro (Intel N100 with a 6 W TDP, up to 16 GB of DDR4, one M.2 slot and one 2.5” SATA bay, according to the listed spec sheets) and the Beelink EQ14 (according to Beelink’s spec sheet: Intel N150, dual 2.5 GbE ports, two M.2 PCIe 3.0 slots, built-in power supply). To compare other models, browse homelab mini PCs and our guide to the best mini PCs for a homelab. Since Prometheus history benefits from fast storage, put it on an NVMe SSD rather than a hard drive.

A second instance outside your home

To be warned when the whole homelab goes down (power cut, Internet box offline, monitoring server crashed), install a second Uptime Kuma instance on a small VPS, outside your home, with the same Telegram notification as in step 6. It alerts you even when nothing answers at home anymore. Create two monitors on it:

  • an HTTP(s) or Ping monitor pointing to your homelab’s public address, or to a service you expose behind Caddy;
  • a Push monitor that the monitoring server calls from a cron job (curl -fsS -o /dev/null "MONITOR_URL"): if that server crashes, the calls stop and the alert fires.

This kind of service runs on a managed VPS, ready in minutes: see PlanetHoster plans. To compare hosts, see our pick of the best VPS for self-hosting.

As an Amazon Associate, Selfhostr earns from qualifying purchases, at no extra cost to you.

Key facts

30-45 min
Est. Setup Time
4 containers
Stack Components
30 days
Data Retention
Telegram
Alert Channel
Tags: homelabmonitoringUptime KumaGrafanaPrometheusDockernode_exporterautomationGatusHealthchecksNetdata

Related

Tutorials

Configure Dockge to manage your Docker containers in 2026

Learn how to install and configure Dockge, a lightweight and self-hosted Docker Compose stack manager, perfect for homelabs and self-hosting.

Read
Tutorials

Install Frigate NVR on Raspberry Pi 5 in 2026: The Complete Guide

Install Frigate NVR on a Raspberry Pi 5: 64-bit Raspberry Pi OS, Docker from the official repository, the official image, a config.yml for an RTSP camera, secured port 8971 and SSD storage.

Read
Tutorials

Create a Raspberry Pi 5 NAS in 2026: Complete Guide

Guide for 2026 to transform a Raspberry Pi 5 into a high-performance NAS. Step-by-step guide on case, NVMe SSD, Docker, Samba setup and security for reliable self-hosting.

Read