Trying to install DigitalOcean Agent on droplet that has inbound rules

Posted December 14, 2018 1.5k views
DigitalOceanUbuntu 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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