To follow along, you will need a DigitalOcean account. If you don’t already have one, you can register on the sign up page.
The easiest way to install the DigitalOcean metrics agent on a Droplet is during creation.
To install the metrics agent when you create a Droplet:
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 will display 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 checked in, the Graphs section of your Droplet’s detail page will display 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, you can use your native package manager.
sudo apt-get purge do-agent.
sudo yum remove do-agent.