How to Set Up VPS Monitoring with Netdata: CPU, RAM, Disk, and Network in Real-Time

How to Set Up VPS Monitoring with Netdata: CPU, RAM, Disk, and Network in Real-Time

Real-time monitoring is essential for maintaining VPS performance and catching issues before they affect your users. Netdata is an open-source, real-time monitoring solution that provides granular visibility into every aspect of your server — CPU usage, memory consumption, disk I/O, network traffic, and hundreds of other metrics — all through a beautiful web dashboard. This tutorial walks through installing and configuring Netdata on a Linux VPS.

Prerequisites

  • A Linux VPS (Ubuntu 20.04/22.04/24.04 or Debian 11/12 recommended)
  • Root or sudo access
  • At least 512 MB RAM (1 GB+ recommended for production servers)
  • A firewall that allows port 19999 (or configure a reverse proxy)

If you don’t already have a VPS, compare VPS providers on our comparison page to find one that fits your monitoring needs.

Step 1: Install Netdata

The easiest way to install Netdata is using the automated one-line installer, which detects your operating system and handles all dependencies:

bash <(curl -Ss https://my-netdata.io/kickstart.sh)

This script will:

  • Detect your OS and package manager
  • Install all required dependencies
  • Download the latest Netdata release
  • Compile and install Netdata
  • Start the Netdata service and enable it on boot

Alternative: Install via Package Manager

On Ubuntu/Debian, you can also install Netdata directly from the official repository.

Step 2: Verify Netdata is Running

After installation, verify that the Netdata service is active:

sudo systemctl status netdata

You should see output indicating the service is active (running). Netdata binds to localhost:19999 by default.

Step 3: Configure Firewall Access

To access the Netdata dashboard from your browser, you need to expose port 19999 through your firewall. For security, restrict access to your IP address only.

Step 4: Exploring the Netdata Dashboard

Open http://YOUR_VPS_IP:19999 in your browser. The dashboard provides real-time per-core CPU utilization, memory usage, disk I/O operations, and network bandwidth.

Step 5: Setting Up Alerts and Notifications

Netdata comes with 200+ pre-configured alerts. To receive notifications via email, Slack, Discord, Telegram, or PagerDuty, edit the health notification configuration.

Step 6: Enable Long-Term Metrics Storage

By default, Netdata stores about 2 hours of metrics in memory. For historical analysis, configure the database engine to store weeks or months of data.

Step 7: Setting Up Netdata Cloud (Optional)

For monitoring multiple VPS instances from a single dashboard, register your nodes with Netdata Cloud. This enables centralized monitoring across all your VPS instances.

Key Metrics to Watch

MetricWarning ThresholdCritical ThresholdWhat to Do
CPU Usage>80% sustained>95% sustainedUpgrade vCPU allocation or optimize processes
RAM Usage>85%>95%Add swap or increase RAM allocation
Disk I/O Latency>10ms>20msCheck for disk contention, upgrade to NVMe
Disk Usage>80% full>90% fullClean up logs, resize disk, or offload data
Network Errors>0.1% packet loss>0.5% packet lossCheck network interface, contact provider
TCP Retransmits>0.1% of packets>0.5% of packetsInvestigate network congestion or hardware issues

Conclusion

Netdata transforms your VPS from a black box into a fully transparent system where every metric is visible in real-time. With the installation and configuration steps in this guide, you now have a professional-grade monitoring setup that alerts you to anomalies before they become outages. For more performance optimization tips and to see our VPS performance benchmarks, check out our detailed provider comparisons.

Leave a Reply