Netdata Installation & Monitoring Guide for VPS

2025-06-28 23:11:23 - Rao Ashish Kumar

πŸš€ Step 1: Start from Local SSH

  1. Open your terminal.
  2. Connect to your VPS via SSH:
ssh root@<your-vps-ip>

Example:

ssh root@<your-vps-ip>


πŸ”₯ Step 2: Install Netdata on VPS (Ubuntu - Hostinger VPS)Run the official kickstart script:

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

︎ This installs the latest Netdata (nightly or stable based on availability).



πŸ”— Step 3: Access Netdata UIπŸ‘‰ Option 1: Direct Access (Not recommended for public IP)

http://<your-vps-ip>:19999

Example:

http://<your-vps-ip>:19999

πŸ‘‰ Option 2: πŸš€ Secure Access via SSH Tunneling (Recommended)

Run this command from your local machine:

ssh -L 19999:localhost:19999 root@<your-vps-ip>

Example:

ssh -L 19999:localhost:19999 root@<your-vps-ip>

β†’ Then open in your browser:

http://localhost:19999

πŸ”’ This forwards the remote Netdata port securely to your local machine.



πŸ” Debugging & Monitoring Tipsβœ… Check if Netdata is Running:

sudo systemctl status netdata

βœ… Restart Netdata:

sudo systemctl restart netdata


βœ… Check Plugin Health:

sudo /usr/libexec/netdata/plugins.d/go.d.plugin -m

︎ Lists loaded modules.


βœ… Check Logs:

sudo journalctl -u netdata --since "10 minutes ago"

or Netdata error logs:

sudo cat /var/log/netdata/error.log

βš™οΈ Netdata Useful Monitoring Sections:

🚩 Debugging Performance Issues:

  1. Check CPU β†’ If spikes to 100%, it's CPU-bound.
  2. Check Disk Backlog β†’ If backlog >0 consistently, it's disk I/O bound.
  3. Check Processes β†’ See if PHP-FPM, Postgres, or Nginx are top consumers.
  4. Monitor Network β†’ High inbound/outbound during stress tests.

πŸ“› Stop Netdata (if needed):

sudo systemctl stop netdata

πŸ”₯ Recap:


More Posts