Beginner
How to monitor Droplet resource usage on DigitalOcean
Quick Answer
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
1
Access the DigitalOcean Control Panel
Log in to your DigitalOcean account and navigate to the Control Panel. Click on Droplets from the left sidebar to view all your running instances.
Tip
Bookmark the Control Panel URL for quick access to your monitoring dashboard.
2
Select Your Droplet
From the Droplets list, click on the name of the Droplet you want to monitor. This will open the Droplet's detail page where you can access various management options.
3
Navigate to the Insights Tab
On the Droplet detail page, click on the Insights tab. This section displays comprehensive resource usage metrics including CPU utilization, memory usage, disk I/O, and network traffic over different time periods.
Tip
Use the time range selector to view metrics for the last hour, day, week, or month to identify usage patterns.
4
Review CPU and Memory Metrics
Examine the CPU Usage and Memory Usage graphs. CPU usage is displayed as a percentage, while memory shows both used and available RAM. Look for sustained high usage periods that might indicate performance bottlenecks.
Tip
CPU usage consistently above 80% may indicate the need for a more powerful Droplet plan.
5
Monitor Disk and Network Usage
Scroll down to view Disk I/O metrics showing read/write operations and Network graphs displaying inbound and outbound traffic. These metrics help identify storage performance issues and bandwidth consumption patterns.
Tip
High disk I/O wait times may suggest upgrading to SSD storage or optimizing database queries.
6
Install DigitalOcean Agent for Enhanced Monitoring
For more detailed metrics, install the DigitalOcean monitoring agent on your Droplet. SSH into your server and run:
curl -sSL https://agent.digitalocean.com/install.sh | sh The agent provides additional system-level metrics and process monitoring.Tip
The monitoring agent is lightweight and provides more granular data without significant performance impact.
7
Set Up Alerts and Notifications
Click on Alerting in the left sidebar of the Control Panel. Create alert policies by clicking Create Alert Policy. Configure thresholds for CPU, memory, disk usage, or bandwidth to receive email notifications when limits are exceeded.
Tip
Set up multiple alert levels: warning at 70% usage and critical at 90% to give yourself time to respond.
8
Use Command Line Monitoring Tools
SSH into your Droplet and use built-in monitoring commands for real-time analysis:
htop- Interactive process viewerdf -h- Disk space usagefree -m- Memory usage in MBiostat -x 1- Disk I/O statistics
Tip
Install htop if not available using your package manager: apt install htop or yum install htop.
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.
Ready to get started with DigitalOcean?
Put this tutorial into practice. Visit DigitalOcean and follow the steps above.
Visit DigitalOcean →