![]() |
VOOZH | about |
This page outlines the basic features of the Datadog Agent for Linux environments. See the Supported Platforms documentation for the complete list of supported Linux distributions and versions.
To install the Agent on Linux, follow the in-app instructions in Fleet Automation, and run the generated script on your hosts.
The Datadog Agent configuration file is located in /etc/datadog-agent/datadog.yaml. This YAML file holds the host-wide connection details used to send data to Datadog including:
api_key: Your organization’s Datadog API keysite: Target Datadog region (for example datadoghq.com, datadoghq.eu, ddog-gov.com, us2.ddog-gov.com)proxy: HTTP/HTTPS proxy endpoints for outbound traffic (see Datadog Agent Proxy Configuration)A fully commented reference file, located in /etc/datadog-agent/datadog.yaml.example, lists every available option for comparison or to copy and paste. Alternatively, see the sample config_template.yaml file for all available configuration options.
Configuration files for integrations live in /etc/datadog-agent/conf.d/. Each integration has its own sub-directory, <INTEGRATION>.d/, that contains:
conf.yaml: The active configuration controlling how the integration gathers metrics and logsconf.yaml.example: A sample illustrating supported keys and defaults| Description | Command |
|---|---|
| Start Agent as a service | sudo systemctl start datadog-agent |
| Stop Agent running as a service | sudo systemctl stop datadog-agent |
| Restart Agent running as a service | sudo systemctl restart datadog-agent |
| Status of Agent service | sudo systemctl status datadog-agent |
| Status page of running Agent | sudo datadog-agent status |
| Send flare | sudo datadog-agent flare |
| Display command usage | sudo datadog-agent --help |
| Run a check | sudo -u dd-agent -- datadog-agent check <CHECK_NAME> |
Note: For upstart-based systems, such as CentOS/RHEL 6 or SUSE 11, swap systemctl <action> with <action>. For example, when starting an Agent as a service on a SUSE 11 system, use sudo start datadog-agent.
To uninstall the Agent, run the command for the appropriate Linux environment:
sudo yum remove datadog-agent
sudo apt-get remove datadog-agent -y
sudo zypper remove datadog-agent
The above commands remove the Agent, but do not remove:
datadog.yaml configuration file/etc/datadog-agent configuration folder/opt/datadog-agent folderdd-agent userTo remove these elements, run this command after removing the Agent:
sudo userdel dd-agent \
&& sudo rm -rf /opt/datadog-agent/ \
&& sudo rm -rf /etc/datadog-agent/ \
&& sudo rm -rf /var/log/datadog/
To uninstall remaining Agent artifacts for Debian and Ubuntu run:
sudo apt-get remove --purge datadog-agent -y
If you installed the Agent with Single Step APM Instrumentation and want to uninstall it, you need to run additional commands to remove APM Instrumentation. Follow the steps for your specific environment.
For detailed steps, see Agent Troubleshooting.
The Agent contains an embedded Python environment at /opt/datadog-agent/embedded/. Common binaries such as python and pip are contained within /opt/datadog-agent/embedded/bin/.
See the instructions on how to add packages to the embedded Agent for more information.
Additional helpful documentation, links, and articles:
| |