Remote Agent Management

Try the Preview!

Upgrading Agents with Remote Management is in Preview. Use this form to request access.

Request Access

Overview

Remote Agent Management simplifies the process of upgrading your Agent fleet by reducing the need to coordinate with multiple deployment or configuration management tools. Remote Agent Management gives you access to:

  • Centralized Management - Upgrade Agents across all environments with a single tool, ensuring consistency with the latest features and security patches.
  • Visibility and Monitoring - Track the status of upgrades in real-time, allowing quick verification of deployment success.
  • Operational Efficiency - Streamline the upgrade process by eliminating cross-team coordination and unifying deployment across different platforms.

Setup

To enable Remote Agent Management:

  1. If you haven’t enabled Remote Configuration on the Agent, follow the configuration instructions to enable it.

  2. Go to the Datadog Agent install page for your platform or configuration management tool.

  3. Enable Remote Agent Management. Enabling Remote Agent Management adds the DD_REMOTE_UPDATES environment variable to the generated Agent installation command.

    Enable the Remote Agent Management toggle.
  4. Use the generated Agent installation command to upgrade your Agent.

    Note: You must run the generated installation command with DD_REMOTE_UPDATES set to true to gain access to Remote Agent Management. Enabling Remote Agent Management without running the install command does not grant access to the feature.

Remotely upgrade your Agents

Supported platforms

  • Linux VMs installed using the install script or Ansible Datadog Role
  • Windows VMs using the default installation method (gMSA or default ddagentuser account)
Remotely upgrading Agents in containerized environments is not supported.

Prerequisites

  • User permissions: Users must have the Agent Upgrade permission within Fleet Automation. The permission is enabled by default on the Datadog Admin role.
  • Disk space: Datadog suggests at least 2GB for the initial Agent install and an additional 2GB for upgrading the Agent from Fleet Automation. Specifically, the upgrade requires 1.3GB in the /opt/datadog-packages directory. The extra space ensures that there is enough room to maintain two Agent installs temporarily during the upgrade process in case a rollback is needed.

Upgrade your Agents

Remote Agent upgrades are in Preview. Test the feature only on hosts that are not critical to production workloads. Try upgrading Agents one at a time before testing bulk upgrades.

To upgrade your Agents:

  1. Enable Remote Agent Management.

  2. From the Upgrade Agents tab, click Start Agents Upgrade.

    Select the Agents you want to upgrade.
  3. Select the Agents you want to upgrade. You can target a group of Agents by filtering on host information or tags.

    Select the Agents you want to upgrade.
  4. Click Upgrade Agents to start the upgrade.

  5. Use the Deployments dashboard to track the upgrade process. Clicking on an Agent in the deployments table gives you more information about the upgrade, including the duration time, progress, and the user who started the upgrade.

    Select the Agents you want to upgrade.

Upgrade process

Similar to a manual upgrade, expect a downtime of 5-30 seconds while the Agent restarts. The full upgrade process takes approximately 5 minutes. Around 2 minutes of this time is used for the upgrade process. The rest of the time is spent monitoring the upgrade to ensure stability and determining if a rollback is necessary. If the upgrade fails and a rollback is necessary, the Agent automatically reverts to the previously running Agent version.

The upgrade process primarily adds files to the following directories:

  • /opt/datadog-packages
  • /etc/datadog-agent
  • /etc/systemd/system

The Agent ensures that the appropriate permissions are set for these files. No configuration files are altered during the installation process.

Upgrade precedence

For the most consistent upgrade experience, Datadog recommends managing upgrades from one source at a time. Use either Fleet Automation or a configuration management tool. If you run a configuration management tool on an Agent that has already been upgraded using Fleet Automation, the upgrade reverts the Agent to the DD_AGENT_MINOR_VERSION specified in your configuration. If no DD_AGENT_MINOR_VERSION is set, the Agent is upgraded to the latest available version .

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:

Downgrading Agents

If you need to downgrade an Agent, follow the steps in Upgrade your Agents and specify the version you wish to downgrade to. Datadog recommends using the latest version of the Agent and upgrading your Agents regularly to make sure you have access to the latest features.

Further reading

Additional helpful documentation, links, and articles: