Home How ToInstall Netdata for Real-Time Linux Monitoring

Install Netdata for Real-Time Linux Monitoring

by Knowledge Base Linux
Install Netdata for Real-Time Linux Monitoring — Install Netdata for Real-Time Linux Monitoring

What Is Netdata? – Install Netdata for Real-Time Linux Monitoring

Netdata is an open-source, real-time infrastructure monitoring tool. Unlike traditional monitoring stacks that poll every minute, Netdata collects thousands of metrics per second with minimal overhead and renders them in a beautiful web dashboard — no complex configuration required. If you manage Linux servers and want instant visibility into CPU, RAM, disk, and network, this guide shows you how to install Netdata on Linux in minutes. This article covers Install Netdata for Real-Time Linux Monitoring in detail.

Netdata is ideal as a complement to heavier systems like Zabbix: Zabbix excels at long-term alerting across fleets, while Netdata shines for per-second troubleshooting on individual hosts. Many admins run both — Zabbix for the NOC dashboard and Netdata for deep-diving into a misbehaving server in real time.

Prerequisites – Install Netdata for Real-Time Linux Monitoring

  • A Linux server (Ubuntu 20.04/22.04/24.04, Debian 11/12, AlmaLinux 8/9, Rocky Linux)
  • Root or sudo access
  • At least 1 GB RAM recommended for the monitoring agent
  • Port 19999 reachable (dashboard), or access via SSH tunnel
Netdata monitoring dashboard live graphs

Step 1 – Install Netdata with the Kickstart Script

The official one-line installer detects your distro, installs dependencies, and sets up the agent as a systemd service. The whole process typically finishes in under two minutes on a modern VPS with a decent network connection and at least 1 GB of free RAM:

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

For an unattended install (no prompts), add the flags:

wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && sh /tmp/netdata-kickstart.sh --non-interactive --disable-telemetry

The installer compiles or downloads a static binary, creates the netdata user, and enables the service.

Step 2 – Verify the Service Is Running

sudo systemctl status netdata --no-pager
sudo ss -tlnp | grep 19999

You should see the service active (running) and port 19999 listening.

Step 3 – Open the Dashboard

Open http://YOUR_SERVER_IP:19999 in a browser. Within seconds you will see live charts for:

  • CPU — per-core usage, interrupts, softirqs
  • Memory — RAM, swap, and pressure (see also our guide on how to check RAM on Linux)
  • Disks — I/O throughput, latency, space usage per mount
  • Network — bandwidth per interface, packets, errors
  • Applications — auto-detected services (Nginx, MySQL, PHP-FPM, Docker…)

All data is collected and stored locally — nothing leaves your server unless you opt into Netdata Cloud.

Step 4 – Secure the Dashboard

By default the dashboard is open to anyone who can reach port 19999. Restrict it:

Option A — Bind to localhost and use an SSH tunnel:

# /etc/netdata/netdata.conf  (create/edit under [web])
sudo mkdir -p /etc/netdata
printf '[web]\n    bind to = 127.0.0.1\n' | sudo tee -a /etc/netdata/netdata.conf
sudo systemctl restart netdata
# then from your workstation:
ssh -L 19999:localhost:19999 user@server-ip

Option B — Firewall restriction with UFW:

sudo ufw allow from 203.0.113.25 to any port 19999 proto tcp

Option C — Put it behind an Nginx reverse proxy with basic auth for team access.

Step 5 – Configure Alerts

Netdata ships with hundreds of pre-configured health alarms (/etc/netdata/health.d/). To get notified, configure a notification channel — for example email:

sudo /etc/netdata/edit-config health_alarm_notify.conf
# set:
# SEND_EMAIL="YES"
# EMAIL_TO="[email protected]"

Test the notification pipeline:

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

Slack, Discord, PagerDuty, and webhooks are supported through the same script.

Step 6 – Monitor Application Metrics

Netdata auto-detects common services, but you can verify collectors explicitly:

# Check which collectors are active
curl -s http://localhost:19999/api/v1/info | python3 -m json.tool | grep -A5 collectors

For MySQL/MariaDB monitoring, grant the netdata user read access:

mysql -u root -p -e "CREATE USER 'netdata'@'localhost'; GRANT USAGE, REPLICATION CLIENT ON *.* TO 'netdata'@'localhost'; FLUSH PRIVILEGES;"

Restart Netdata and the mysql charts will appear automatically.

Troubleshooting

Dashboard shows no data / charts are empty

Check the error log: sudo journalctl -u netdata --no-pager | tail -n 50 or /var/log/netdata/error.log. Common causes: the netdata user lacking permissions (fixed by the installer), or eBPF plugin requiring kernel headers.

High memory usage by Netdata itself

Reduce metric retention in netdata.conf ([db] → retention) or disable unneeded collectors under /etc/netdata/go.d/. For tiny VPS instances, set memory mode = ram with a short history.

Port 19999 already in use

Change the port in [web] section: port = 19999 → your choice, then sudo systemctl restart netdata.

Centralizing with Netdata Cloud (Optional)

For a single server, the local dashboard is enough. When you manage several hosts, Netdata Cloud gives you one unified view. Claiming a node is simple and does not expose your dashboard publicly — the agent initiates an outbound connection:

sudo netdata-claim.sh -token=YOUR_CLAIM_TOKEN -rooms=YOUR_ROOM_ID -url=https://app.netdata.cloud

Get the token and room ID from your Netdata Cloud account (free tier available). After claiming, all nodes appear in one interface with synchronized chart panning — hover over a CPU spike on one server and see the same time window everywhere. Metric data still streams directly from your agents; the cloud only brokers the connection and stores metadata, not your raw metrics.

Uninstalling Netdata Cleanly

If you ever need to remove Netdata, use the official uninstaller rather than deleting files manually — it stops the service, removes the user, and cleans up systemd units:

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

Add --non-interactive for scripted removal. Configuration under /etc/netdata is left behind by default so you can reinstall without losing custom alarms; delete it manually if you want a completely clean slate.

Conclusion

You now know how to install Netdata on Linux, secure its dashboard, configure alerts, and extend it to application metrics. With per-second granularity and zero-configuration collectors, Netdata is one of the fastest ways to answer “what is my server doing right now?” For fleet-wide alerting and SLA reporting, pair it with a system like Zabbix; for deep real-time dives, Netdata is unmatched. Official documentation lives at learn.netdata.cloud.

You may also like

KbLinux

Typically replies within a day

Hello, Welcome to the site. Please click below button for chatting me through Telegram.