The setup script provided in the in-application Agent install instructions requires outbound HTTPS access to a number of different endpoints in order to function properly and might not work well with servers that have limited internet access.
For servers with no direct internet access, the Agent can be configured to route through a proxy. Refer to the help article on this topic.
For servers with limited outbound internet connectivity, the Agent can be installed using the relevant package for the server’s OS. The in-application install instructions contain steps for this approach which can be viewed by clicking the link shown on the instructions page.
If the target system is blocked from accessing the package repository directly, download the package from the repository using another server, then transfer it over to the target system for a local install.
The example below shows a user copying the URL to the rpm package for the latest version of the Agent:
Note: The package bundles all resources necessary to run the Agent and checks (whether the integration is enabled or not). In terms of hard requirements, Python 2.7+ and sysstat are required; other dependencies are mandatory depending on what checks are enabled.
Once the package has been transferred to the target system, it can be installed locally by using the appropriate package manager command.
For yum, using Agent 5.7.3 as an example, the command would be:
sudo yum localinstall datadog-agent-5.7.3-1.x86_64.rpm
Once installed, the
datadog.yaml file needs to be generated from the
datadog.yaml.example file and updated with the API key for your instance.
This can be done with a single command:
sudo sh -c "sed 's/api_key:.*/api_key: <API_KEY>/' /etc/dd-agent/datadog.yaml.example > /etc/dd-agent/datadog.yaml"
Run the command above after replacing
<API_KEY> with the API key for your organization
Next, start the Agent:
sudo service datadog-agent start