Trying to install DigitalOcean Agent on droplet that has inbound rules

December 14, 2018 635 views
DigitalOcean Ubuntu 16.04

I’d really like to install and get DigitalOcean’s Agent feature working on one of my droplets that has inbound rules. Is there some static IP that I can post in as the source?

1 Answer

The DigitalOcean monitoring agent should not need inbound firewall rules to function. Though it does require outbound TCP access on ports 80 and 443 to authenticate to the Monitoring service and to send metrics.

The agent need to be able to access the DigitalOcean metadata API at: as well as the metrics service itself at Additionally, in order to allow the agent to update itself

You can find their current IP addresses using: dig +short and dig +short on the command line. Currently those are and respectively.

  • Great info! What about installing? When I try the install script curl -sSL | sh it can’t resolve.

    • That script is hosted in another location, currently Though you can avoid creating a separate rule for it by checking the box for “Monitoring” when you create a Droplet. That will automatically install the agent on the new Droplet.

      Essentially, all the script does is configure the appropriate repo based on the operating system. For instance on Ubuntu, it creates the file /etc/apt/sources.list.d/digitalocean-agent.list with the contents:

      deb main main

      Then runs apt update; apt install -y do-agent

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!