How to monitor Droplet resource usage on DigitalOcean
Monitor your DigitalOcean Droplet resource usage through the Control Panel's Insights dashboard or by installing monitoring agents. Access real-time metrics for CPU, memory, disk, and network usage to optimize performance and costs.
Prerequisites
- Active DigitalOcean account
- At least one running Droplet
- Basic understanding of server metrics
- Access to DigitalOcean Control Panel
Step-by-Step Instructions
Access the DigitalOcean Control Panel
Select Your Droplet
Navigate to the Insights Tab
Review CPU and Memory Metrics
Monitor Disk and Network Usage
Install DigitalOcean Agent for Enhanced Monitoring
curl -sSL https://agent.digitalocean.com/install.sh | sh The agent provides additional system-level metrics and process monitoring.Set Up Alerts and Notifications
Use Command Line Monitoring Tools
htop- Interactive process viewerdf -h- Disk space usagefree -m- Memory usage in MBiostat -x 1- Disk I/O statistics
Common Issues & Troubleshooting
Metrics not showing in Insights dashboard
Wait 5-10 minutes for data to populate. If metrics still don't appear, ensure your Droplet is running and try refreshing the page. For new Droplets, initial metrics may take up to 15 minutes to display.
Monitoring agent installation fails
Ensure you have root privileges by running sudo su before installation. Check your internet connection and firewall settings. For Ubuntu/Debian, update package lists with apt update first.
High CPU usage with unknown cause
Use htop to identify resource-heavy processes. Sort by CPU usage by pressing 'P' key. Consider running ps aux --sort=-%cpu | head to list top CPU-consuming processes.
Alert notifications not being received
Verify your email address in Account Settings. Check spam folders and ensure alert policies are enabled. Test notifications by temporarily setting very low thresholds to trigger alerts.