Rao Ashish Kumar 10 months ago
ashfouryou #development

Netdata Installation & Monitoring Guide for VPS

πŸš€ 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)

  • Open in your browser:
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:

  • CPU Utilization β†’ Detect saturation.
  • RAM Usage β†’ Detect memory pressure or leaks.
  • Disk I/O β†’ Check disk bottlenecks.
  • Network I/O β†’ See traffic spikes.
  • Processes β†’ Monitor which processes (PHP, Nginx, Postgres) use most CPU/RAM.
  • PostgreSQL Section β†’ View DB connections, cache hit ratio, lock conflicts.

🚩 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:

  • Netdata is installed via one-line script.
  • Accessible on port 19999.
  • Best practice β†’ Use SSH tunneling for secure access.
  • Monitors full system: CPU, RAM, Disk, Network, and Apps like Postgres.
  • Provides real-time debugging during stress testing or production load.


0
372
Star Performer of the Year (Development) 2024

Star Performer of the Year (Development) 2024

1753547848.jpeg
Rao Ashish Kumar
1 year ago
Stress Testing Guide for Nginx On Ubuntu VPS

Stress Testing Guide for Nginx On Ubuntu VPS

1753547848.jpeg
Rao Ashish Kumar
10 months ago

What We Tend To Forget About Writing Code in the Age of AI

1753547848.jpeg
Rao Ashish Kumar
9 months ago
How I Built a Fast, Accurate, and Context-Aware Gmail Writing Chrome Extension Using Web Speech API ,Laravel and LLMs

How I Built a Fast, Accurate, and Context-Aware Gmail Writing Chrome E...

1753547848.jpeg
Rao Ashish Kumar
1 year ago
Frameverse: Your Friendly Neighborhood Wall Decoration Company

Frameverse: Your Friendly Neighborhood Wall Decoration Company

1753547848.jpeg
Rao Ashish Kumar
1 year ago