How to Set Up Netdata on Ubuntu 24.04: Real-Time Server Monitoring

Your VPS slows down at 2 a.m. and you hear about it from a visitor, not from your server. That is the gap Netdata closes. It watches CPU, memory, disk, and network every second and puts it all on one dashboard you can read in a glance. This guide shows you how to set up Netdata on Ubuntu 24.04, from the install to alerts that warn you before a small problem turns into downtime.

Netdata runs as a small agent on your server. It collects metrics itself, stores a short history locally, and serves a web dashboard on port 19999. There is no database to install. On a 2 GB VPS it typically uses 100 to 200 MB of RAM, leaving room for the sites you run.

What Netdata Shows You

Open the dashboard and you get a chart for almost everything the kernel knows: CPU use per core, memory and swap, disk read and write rates, network throughput per interface, and load average. Further down you find per-process CPU and memory, systemd service states, and application charts for Nginx, Apache, MySQL, and PHP-FPM.

The per-second resolution is the point. Tools that sample every five minutes smooth away the spike that killed your site. Netdata keeps it visible: a backup job at 03:00 pushing disk wait to 90 percent, or one PHP worker eating a whole core for forty seconds. If you already check load with the terminal, this is the same data with a timeline attached. Our walkthrough of monitoring disk, RAM, and CPU with htop and glances covers the command-line side of the same job, and pairs well with the graphs here.

Before You Install

Netdata needs Ubuntu 24.04, a user with sudo, and about 500 MB of free disk for the install and its short-term metric history. The dashboard listens on port 19999 by default. Decide now whether that port stays open to the internet or only your IP can reach it. On a production server, pick the second option.

Check your current load first so you have a baseline to compare against after the install:

uptime
free -h
df -h /
ss -tulpn | grep 19999

The last command should return nothing yet. If port 19999 is already in use, something else on the box claimed it, and you will want to change Netdata’s port in its config before you start.

Set Up Netdata on Ubuntu 24.04 in Four Steps

The official install script is the fastest path and it works on a stock 24.04 server. Run it as root or with sudo:

wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh
sh /tmp/netdata-kickstart.sh

The script detects Ubuntu, adds the Netdata repository, and installs the agent. It takes two to four minutes, then prints the dashboard URL. A netdata ubuntu installation done this way also sets up automatic nightly updates, which you can disable later.

Step 1: Confirm the service is running

sudo systemctl status netdata
curl -s http://localhost:19999/api/v1/info | head -c 300

The status should read active, and the API call should return a short JSON block with your hostname and version. If the service failed, check journalctl -u netdata -n 50 before you reinstall anything: most first-run failures come from a full disk or a missing dependency.

Step 2: Open the dashboard

Visit http://your-server-ip:19999. You should see live charts updating every second. If the page does not load, check the firewall:

sudo ufw allow 19999/tcp
sudo ufw status

If you use a cloud firewall outside the VPS, open the port there too. And if you would rather not expose the dashboard at all, skip this step and put it behind an Nginx reverse proxy with basic auth instead, which is the setup we recommend further down.

Step 3: Claim the node or keep it local

The installer asks whether to claim the node to Netdata Cloud. Claiming gives you a hosted dashboard, alert history, and access from anywhere without opening port 19999. Staying unclaimed keeps everything on your server. For a single VPS, local-only is fine; for three or more servers, one hosted screen for every node earns its keep. The trade-offs are laid out in our comparison of Netdata Cloud and self-hosted Netdata.

Step 4: Point it at your services

Netdata auto-detects most services, but Nginx and MySQL need a little help. For Nginx, enable the stub status page. For MySQL or MariaDB, create a read-only monitoring user:

CREATE USER 'netdata'@'localhost' IDENTIFIED BY 'a-strong-password-here';
GRANT USAGE, REPLICATION CLIENT, PROCESS ON *.* TO 'netdata'@'localhost';
FLUSH PRIVILEGES;

Restart Netdata after adding the user, then look for the MySQL charts in the dashboard. The same pattern applies to PHP-FPM: enable its status page, and the per-pool charts appear on their own.

First Look at the Dashboard

The left sidebar groups charts by section: system, disks, network, applications. Click a chart to zoom, or use the time picker to look back an hour or a day. The overview page shows the charts Netdata thinks matter most, a decent starting point while you learn what normal looks like.

Spend ten minutes noting the normal ranges: idle CPU near zero with spikes during deploys, memory that climbs after a restart then flattens, disk wait under 10 ms. Write those numbers down. Alerts only make sense once you know what normal is, and netdata real-time monitoring pays off when you spot the line that left its usual band.

Netdata Alerts Setup That Actually Helps

Netdata ships with hundreds of built-in alerts, and most of them are noise on a small VPS. The ones worth keeping are disk space, RAM exhaustion, load average, and a service that stopped. Start by editing the health config for disk space:

sudo nano /etc/netdata/health.d/disks.conf

Find the disk space alert and lower the warning threshold to 80 percent and the critical one to 90. A VPS disk fills fast once logs and backups pile up, and 80 percent gives you time to act. Turn off alerts you will never act on: an alert you ignore trains you to ignore the next one too.

Netdata can notify by email, Telegram, Slack, and more. Telegram is the simplest for a single admin: create a bot, get a chat ID, and add both to the Telegram section of /etc/netdata/health_alarm_notify.conf. Test it with:

sudo /usr/libexec/netdata/plugins.d/alarm-notify.sh test

That test tells you the whole chain works before a real 3 a.m. alert has to. Keep the alert list short: disk, memory, load, and one or two services you care about. If you run Nginx, pair these with the log-based checks in our guide to monitoring Nginx error logs and alerting on 5xx spikes, which catches application errors that system metrics miss.

Keep Netdata Light on a Small VPS

On a 1 or 2 GB VPS, trim Netdata’s appetite. Open /etc/netdata/netdata.conf and set the history to one day instead of the default, which cuts memory use roughly in half:

[global]
    history = 86400
    update every = 2

Changing the sample interval from one second to two halves the data stored and barely changes what you can see. Disable collectors you do not use, such as the ones for services you never installed. After each change, restart the agent and check memory with systemctl status netdata or ps aux | grep netdata.

When Netdata Is the Wrong Tool

Netdata is a live view, not a long-term record. Its local history covers hours or days, not months, so it will not answer “was the server slower last quarter than this quarter.” For that you want a time-series database with a dashboard you keep, such as the Prometheus and Grafana setup for a 2 GB VPS. It also does not replace external uptime checks: if the whole VPS goes down, the agent goes down too, so pair it with an external monitor. And if you manage a fleet with config management and want one agent everywhere with a central console, Zabbix fits that shape better than Netdata does.

Common Problems and Fixes

Dashboard loads but charts are empty: the collector is not running or cannot reach the service. Check /var/log/netdata/error.log for lines with the service name. Missing MySQL charts almost always mean the monitoring user lacks the PROCESS privilege.

High CPU from Netdata itself: you probably enabled every collector, including ones that shell out to external commands. Disable the ones you do not need in netdata.conf and restart. On a small VPS, the eBPF collector is the usual suspect.

Alerts never arrive: run the test notification command from the alerts section above. If the test works but real alerts do not, the alert is probably disabled or its threshold never fired. Check the alert state in the dashboard under the health tab before you blame the notification channel.

Install Netdata today, watch it for a week, and tune the thresholds to your server’s real behaviour. It pays for itself the first time it shows a disk filling up on a Tuesday instead of a site going down on a Saturday.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.