Back to articles
AI & Cloud

Install and Configure NetData on VPS for 1-Second System Performance Monitoring with 0.1s Latency

Detailed guide to install and configure NetData on VPS for real-time system performance monitoring at 1-second intervals and sub-0.1s latency, ideal for AI, API Gateway, and...

DPTCloud Engineering4 min read
Install and Configure NetData on VPS for 1-Second System Performance Monitoring with 0.1s Latency

Image credit: Myriams-Fotos · Pixabay Content License

NetData is a real-time system performance monitoring tool designed to collect, display, and alert on thousands of performance metrics at extremely high frequencies—every 1 second and with latency under 0.1 seconds. With automatic metric detection, NetData enables users to precisely track CPU, RAM, disk I/O, network, and other components on a VPS. This guide walks you through installing and configuring NetData on a VPS for high-accuracy monitoring, ideal for AI, API Gateway, and self-hosted LLM environments.

Prerequisites and Preparation

To install NetData on a VPS, ensure the following conditions are met:

  • VPS running Linux (Ubuntu 20.04/22.04 or CentOS 8/9)
  • Stable internet connection
  • Root or sudo user account
  • At least 1GB RAM and 20GB SSD (more is better)

Install NetData

NetData can be installed with a single command. Below are instructions for Ubuntu/Debian:

curl -s https://my-netdata.io/kickstart.sh | bash -s -- --disable-telemetry --disable-updates

For CentOS/RHEL:

curl -s https://my-netdata.io/kickstart.sh | bash -s -- --disable-telemetry --disable-updates

Parameters --disable-telemetry and --disable-updates disable data submission to NetData and automatic updates, suitable for self-hosted environments.

Configure NetData for 1-Second Frequency and Low Latency

NetData defaults are already optimized for 1-second intervals, but further tuning can reduce latency and improve performance:

  1. Open the configuration file:
  2. sudo nano /etc/netdata/netdata.conf
    
  3. Find and adjust the following parameters:
    • update every = 1 – Set update frequency to 1 second.
    • history = 3600 – Store history for 1 hour (adjust as needed).
    • web timeout = 1 – Reduce web API timeout to 1 second.
    • stream timeout = 1 – Reduce stream data timeout.
    • plugins disabled = python.d – Disable unnecessary plugins to reduce load.
  4. Save the file and restart NetData:
  5. sudo systemctl restart netdata
    

Access and Monitor

After installation and configuration, access NetData via a browser at:

http://:19999

NetData displays a visual interface with dashboards for CPU, RAM, disk, network, and other metrics. Customize dashboards by adding new charts or hiding unnecessary metrics.

Testing and Verification

To verify latency and update frequency:

  1. Open the NetData dashboard.
  2. Select the System tab and view CPU or RAM metrics.
  3. Observe the update time: it should be 1 second or less.
  4. Use the following command to test actual latency:
  5. watch -n 1 'curl -s http://localhost:19999/api/v1/chart?chart=system.cpu | grep -o "value: [0-9]*"'
    
  6. Latency should be under 0.1 seconds when accessed locally or internally on the VPS.

Troubleshooting

  • NetData fails to start: Check logs with sudo journalctl -u netdata -n 50.
  • High latency: Check CPU/RAM usage; disable unnecessary plugins.
  • Cannot access web page: Verify firewall (UFW/iptables) allows port 19999.
  • No data displayed: Ensure NetData is running and not limited by system configuration.

References

Related infrastructure & engineering guides: Guide to Deploying TuIC and Hysteria2 on VPS to Bypass DPI

DPTCloud Tier III Infrastructure

High-RAM Cloud VPS Plans Optimized for AI, Databases & Cache

Enterprise RAID 10 NVMe SSDs, CMC & FPT District 9 uplinks with Anycast Anti-DDoS and 99.99% SLA.

View 22 VPS Plans
ECO · vn-02Recommended

VPS-4E

297.000 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe
ECO · vn-02

VPS-5E

614.900 ₫ / mo

10% VAT included

  • CPU: 8 vCPU
  • RAM: 16 GB
  • SSD: 100 GB NVMe
ADVANCED · vn-03Recommended

VPS-4T

548.900 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe

Related Articles

View all
ZaloZalo SupportDiscord0384 753 478