Use Fleet Automation to roll out and manage Datadog Agent configuration at scale. Apply configuration changes through guided workflows in the UI or with custom YAML files.
Prerequisites
- Remote Configuration enabled for your organization
- Agent version 7.73+ for Agent and OTel Collector configuration (version 7.76+ for configuring integrations and secrets)
- Linux VMs installed with the install script or Ansible Datadog Role, or Windows VMs
Remote configuration of Agents in containerized workloads is not supported.
In Fleet Automation, open the Configuration tab and click Configure Agents.
Scope the configuration to the target Agents. Filter by host information or tags to target a specific group.
Select the products (for example, Logs, APM, or NDM) that the target Agents should run.
Review the deployment plan to confirm scoped Agents and deployment settings, such as rollout concurrency.
Click Deploy Configuration to start the deployment and track its progress from the Deployments page.
Edit the configuration of a single Agent
Navigate to Fleet View.
(Optional) Filter by host information or tags to narrow the list.
Select a host to open its side panel, then click the Configuration tab.
Click Edit to modify the configuration.
Click Deploy Changes to apply your updates.
Note: Some configuration fields (for example, api_key, site, and notable_events) cannot be modified.
The example below shows the logs_enabled field changed from false to true, which enables log collection on the Agent after deployment.
Fleet Automation provides an API to apply configuration updates programmatically. Deploy changes to any group of hosts with filter queries, supplying either full configuration files or targeted patches. Push configuration on demand or integrate it into your existing automation workflows. For full details, see the Fleet Automation API.
Note: The API does not support all Agent configuration fields. Settings related to Agent connection or secrets (site, api_key, and other authentication parameters) cannot be managed through the API.
Configuration precedence
Configuration changes deployed through Fleet Automation follow different rules depending on the target:
Agent configuration (datadog.yaml): Fleet Automation applies changes using merge patch: only the specified fields are updated, and unmentioned fields are left unchanged. If a conflict occurs at the field level, the Fleet Automation value takes precedence over any local value.
Integration and custom log configurations: Fleet Automation supports two modes:
- Deploy a new configuration file.
- Update an existing file using merge patch to modify only specific fields. If you deploy a change targeting an existing filename without using merge patch, the file is fully overwritten.
In both cases, the most recent change becomes the Agent’s active configuration, regardless of the source (Fleet Automation, configuration management tools, or direct host edits).
Use Fleet Automation Audit Trail to track recent configuration changes to your Agents and set up alerts on those changes.
Mirrors and proxies
You can use remote Agent management along with a proxy or mirrored repositories.
For instructions on configuring your Agent to use a proxy, see Agent Proxy Configuration. After you’ve configured the proxy, restart the Agent to apply the settings.
For instructions on using mirrored or air-gapped repositories, see:
Further Reading
Additional helpful documentation, links, and articles: