DigitalOcean Monitoring is a free, opt-in service that gathers metrics about Droplet-level resource utilization. It provides additional Droplet graphs and supports configurable metrics alert policies with integrated email Slack notifications to help you track the operational health of your infrastructure.
The easiest way to install the DigitalOcean metrics agent on a Droplet is when you create the Droplet.
From the Droplet create page, in the Additional Options section, check Monitoring. The metrics agent will be automatically installed and enabled during the Droplet creation process.
Once the metrics agent is enabled and has gathered enough data, the Graphs section of your Droplet’s detail page displays extended metrics and new graphs.
You can use DigitalOcean’s installation script to enable the metrics agent on an existing Droplet. The script adds a repository to your system and uses the native package manager to install the metrics agent.
To use the installation script, run the following command on your Droplet.
curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash
Once the metrics agent is enabled and has gathered enough data, the Graphs section of your Droplet’s detail page displays extended metrics and new graphs.
Once the metrics agent has been installed on your Droplets, you can begin creating alert policies.
You can view triggered and resolved alerts in the control panel. You’ll also receive emails or Slack notifications if you enabled them.
To remove the DigitalOcean Agent, use your native package manager:
sudo apt-get purge do-agent
.sudo yum remove do-agent
.