The one-line install command provided in the Agent install instructions requires outbound HTTPS access to a number of different endpoints to function properly and might not work 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 Can I use a proxy to connect my servers to Datadog?. For servers with limited outbound internet connectivity, the Agent can be installed using the relevant package for the server’s OS. The Agent install instructions contain step-by-step instructions underneath the one-line install commands.
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 rpm packages for Agent 6 are available at https://yum.datadoghq.com/stable/6/x86_64/.
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, the command would follow the pattern:
sudo yum localinstall datadog-agent-<AGENT_VERSION>-1.x86_64.rpm
Once installed, add a
datadog.yaml file by copying
datadog.yaml.example. Then update
datadog.yaml with the API key for your organization. This can be done with a single command:
sudo sh -c "sed 's/api_key:.*/api_key: <YOUR_DATADOG_API_KEY>/' /etc/dd-agent/datadog.yaml.example > /etc/dd-agent/datadog.yaml"
Then, start the Agent using the appropriate command for your system.