Skip to content

[OTAGENT-987] Add datadog-agent ddot install command#49408

Open
liustanley wants to merge 19 commits intomainfrom
stanley.liu/OTAGENT-987
Open

[OTAGENT-987] Add datadog-agent ddot install command#49408
liustanley wants to merge 19 commits intomainfrom
stanley.liu/OTAGENT-987

Conversation

@liustanley
Copy link
Copy Markdown
Contributor

@liustanley liustanley commented Apr 15, 2026

What does this PR do?

Adds a datadog-agent ddot subcommand group with install and remove commands for managing DDOT installation from an OCI package.

# Install DDOT using the default Datadog registry (version inferred from installed agent)                                                                                                                                          
sudo datadog-agent ddot install
                                                                        
# Install from a custom BYOC registry (version inferred)                                                                                                                                                                                                     
sudo DD_INSTALLER_REGISTRY_AUTH=gcr datadog-agent ddot install --registry us-central1-docker.pkg.dev/myproject/byoc                                                                                                                                                
                                                                                                                                                                                                                                             
# Install from an explicit OCI URL                                                                                                                                                                                                         
sudo datadog-agent ddot install --url oci://registry.example.com/agent-package:7.78.0-1                                                                                                                                          
                                                                                                                                                                                                                                             
# Remove an extension                                                 
sudo datadog-agent ddot remove   

The command shells out to the installer binary co-located with the agent (<root>/embedded/bin/installer) via the existing InstallerExec layer

URL resolution precedence:

  1. --url: use the provided full OCI URL
  2. --registry: construct oci://<registry>/agent-package:<current-version>
  3. Neither: use the default Datadog registry with the current agent version

--url and --registry are mutually exclusive. Auth is controlled via DD_INSTALLER_REGISTRY_AUTH, which propagates to the installer subprocess.

Motivation

Customers who already have the agent installed (without DDOT) should install DDOT with a datadog-agent command instead of having to run the install script to reinstall the agent + DDOT.

Describe how you validated your changes

Unit tests and e2e tests, will validate on rc as well

Additional Notes

@dd-octo-sts dd-octo-sts bot added internal Identify a non-fork PR team/agent-configuration labels Apr 15, 2026
@github-actions github-actions bot added the medium review PR review might take time label Apr 15, 2026
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts bot commented Apr 15, 2026

Go Package Import Differences

Baseline: f92774a
Comparison: d7e6e2b

binaryosarchchange
agentlinuxamd64
+34, -0
+cloud.google.com/go/compute/metadata
+github.com/DataDog/datadog-agent/cmd/agent/subcommands/ddot
+github.com/DataDog/datadog-agent/pkg/fleet/installer/config
+github.com/DataDog/datadog-agent/pkg/fleet/installer/env
+github.com/DataDog/datadog-agent/pkg/fleet/installer/errors
+github.com/DataDog/datadog-agent/pkg/fleet/installer/exec
+github.com/DataDog/datadog-agent/pkg/fleet/installer/oci
+github.com/DataDog/datadog-agent/pkg/fleet/installer/packages/file
+github.com/DataDog/datadog-agent/pkg/fleet/installer/packages/user
+github.com/DataDog/datadog-agent/pkg/fleet/installer/repository
+github.com/DataDog/datadog-agent/pkg/fleet/installer/symlink
+github.com/DataDog/datadog-agent/pkg/fleet/installer/tar
+github.com/docker/cli/cli/config
+github.com/docker/cli/cli/config/configfile
+github.com/docker/cli/cli/config/credentials
+github.com/docker/cli/cli/config/memorystore
+github.com/docker/cli/cli/config/types
+github.com/docker/distribution/registry/client/auth/challenge
+github.com/docker/docker-credential-helpers/client
+github.com/docker/docker-credential-helpers/credentials
+github.com/google/go-containerregistry/pkg/authn
+github.com/google/go-containerregistry/pkg/v1/empty
+github.com/google/go-containerregistry/pkg/v1/google
+github.com/google/go-containerregistry/pkg/v1/layout
+github.com/google/go-containerregistry/pkg/v1/mutate
+github.com/google/go-containerregistry/pkg/v1/remote
+github.com/google/go-containerregistry/pkg/v1/remote/transport
+github.com/google/go-containerregistry/pkg/v1/stream
+github.com/mitchellh/go-homedir
+golang.org/x/oauth2/authhandler
+golang.org/x/oauth2/google
+golang.org/x/oauth2/google/externalaccount
+golang.org/x/oauth2/jws
+golang.org/x/oauth2/jwt
agentlinuxarm64
+34, -0
+cloud.google.com/go/compute/metadata
+github.com/DataDog/datadog-agent/cmd/agent/subcommands/ddot
+github.com/DataDog/datadog-agent/pkg/fleet/installer/config
+github.com/DataDog/datadog-agent/pkg/fleet/installer/env
+github.com/DataDog/datadog-agent/pkg/fleet/installer/errors
+github.com/DataDog/datadog-agent/pkg/fleet/installer/exec
+github.com/DataDog/datadog-agent/pkg/fleet/installer/oci
+github.com/DataDog/datadog-agent/pkg/fleet/installer/packages/file
+github.com/DataDog/datadog-agent/pkg/fleet/installer/packages/user
+github.com/DataDog/datadog-agent/pkg/fleet/installer/repository
+github.com/DataDog/datadog-agent/pkg/fleet/installer/symlink
+github.com/DataDog/datadog-agent/pkg/fleet/installer/tar
+github.com/docker/cli/cli/config
+github.com/docker/cli/cli/config/configfile
+github.com/docker/cli/cli/config/credentials
+github.com/docker/cli/cli/config/memorystore
+github.com/docker/cli/cli/config/types
+github.com/docker/distribution/registry/client/auth/challenge
+github.com/docker/docker-credential-helpers/client
+github.com/docker/docker-credential-helpers/credentials
+github.com/google/go-containerregistry/pkg/authn
+github.com/google/go-containerregistry/pkg/v1/empty
+github.com/google/go-containerregistry/pkg/v1/google
+github.com/google/go-containerregistry/pkg/v1/layout
+github.com/google/go-containerregistry/pkg/v1/mutate
+github.com/google/go-containerregistry/pkg/v1/remote
+github.com/google/go-containerregistry/pkg/v1/remote/transport
+github.com/google/go-containerregistry/pkg/v1/stream
+github.com/mitchellh/go-homedir
+golang.org/x/oauth2/authhandler
+golang.org/x/oauth2/google
+golang.org/x/oauth2/google/externalaccount
+golang.org/x/oauth2/jws
+golang.org/x/oauth2/jwt
agentwindowsamd64
+44, -0
+cloud.google.com/go/compute/metadata
+github.com/DataDog/datadog-agent/cmd/agent/subcommands/ddot
+github.com/DataDog/datadog-agent/pkg/fleet/installer/config
+github.com/DataDog/datadog-agent/pkg/fleet/installer/env
+github.com/DataDog/datadog-agent/pkg/fleet/installer/errors
+github.com/DataDog/datadog-agent/pkg/fleet/installer/exec
+github.com/DataDog/datadog-agent/pkg/fleet/installer/oci
+github.com/DataDog/datadog-agent/pkg/fleet/installer/paths
+github.com/DataDog/datadog-agent/pkg/fleet/installer/repository
+github.com/DataDog/datadog-agent/pkg/fleet/installer/symlink
+github.com/DataDog/datadog-agent/pkg/fleet/installer/tar
+github.com/containerd/stargz-snapshotter/estargz
+github.com/containerd/stargz-snapshotter/estargz/errorutil
+github.com/docker/cli/cli/config
+github.com/docker/cli/cli/config/configfile
+github.com/docker/cli/cli/config/credentials
+github.com/docker/cli/cli/config/memorystore
+github.com/docker/cli/cli/config/types
+github.com/docker/distribution/registry/client/auth/challenge
+github.com/docker/docker-credential-helpers/client
+github.com/docker/docker-credential-helpers/credentials
+github.com/google/go-containerregistry/pkg/authn
+github.com/google/go-containerregistry/pkg/compression
+github.com/google/go-containerregistry/pkg/logs
+github.com/google/go-containerregistry/pkg/name
+github.com/google/go-containerregistry/pkg/v1
+github.com/google/go-containerregistry/pkg/v1/empty
+github.com/google/go-containerregistry/pkg/v1/google
+github.com/google/go-containerregistry/pkg/v1/layout
+github.com/google/go-containerregistry/pkg/v1/match
+github.com/google/go-containerregistry/pkg/v1/mutate
+github.com/google/go-containerregistry/pkg/v1/partial
+github.com/google/go-containerregistry/pkg/v1/remote
+github.com/google/go-containerregistry/pkg/v1/remote/transport
+github.com/google/go-containerregistry/pkg/v1/stream
+github.com/google/go-containerregistry/pkg/v1/tarball
+github.com/google/go-containerregistry/pkg/v1/types
+github.com/mitchellh/go-homedir
+github.com/vbatts/tar-split/archive/tar
+golang.org/x/oauth2/authhandler
+golang.org/x/oauth2/google
+golang.org/x/oauth2/google/externalaccount
+golang.org/x/oauth2/jws
+golang.org/x/oauth2/jwt
agentdarwinamd64
+45, -0
+cloud.google.com/go/compute/metadata
+github.com/DataDog/datadog-agent/cmd/agent/subcommands/ddot
+github.com/DataDog/datadog-agent/pkg/fleet/installer/config
+github.com/DataDog/datadog-agent/pkg/fleet/installer/env
+github.com/DataDog/datadog-agent/pkg/fleet/installer/errors
+github.com/DataDog/datadog-agent/pkg/fleet/installer/exec
+github.com/DataDog/datadog-agent/pkg/fleet/installer/oci
+github.com/DataDog/datadog-agent/pkg/fleet/installer/packages/file
+github.com/DataDog/datadog-agent/pkg/fleet/installer/packages/user
+github.com/DataDog/datadog-agent/pkg/fleet/installer/repository
+github.com/DataDog/datadog-agent/pkg/fleet/installer/symlink
+github.com/DataDog/datadog-agent/pkg/fleet/installer/tar
+github.com/containerd/stargz-snapshotter/estargz
+github.com/containerd/stargz-snapshotter/estargz/errorutil
+github.com/docker/cli/cli/config
+github.com/docker/cli/cli/config/configfile
+github.com/docker/cli/cli/config/credentials
+github.com/docker/cli/cli/config/memorystore
+github.com/docker/cli/cli/config/types
+github.com/docker/distribution/registry/client/auth/challenge
+github.com/docker/docker-credential-helpers/client
+github.com/docker/docker-credential-helpers/credentials
+github.com/google/go-containerregistry/pkg/authn
+github.com/google/go-containerregistry/pkg/compression
+github.com/google/go-containerregistry/pkg/logs
+github.com/google/go-containerregistry/pkg/name
+github.com/google/go-containerregistry/pkg/v1
+github.com/google/go-containerregistry/pkg/v1/empty
+github.com/google/go-containerregistry/pkg/v1/google
+github.com/google/go-containerregistry/pkg/v1/layout
+github.com/google/go-containerregistry/pkg/v1/match
+github.com/google/go-containerregistry/pkg/v1/mutate
+github.com/google/go-containerregistry/pkg/v1/partial
+github.com/google/go-containerregistry/pkg/v1/remote
+github.com/google/go-containerregistry/pkg/v1/remote/transport
+github.com/google/go-containerregistry/pkg/v1/stream
+github.com/google/go-containerregistry/pkg/v1/tarball
+github.com/google/go-containerregistry/pkg/v1/types
+github.com/sirupsen/logrus
+github.com/vbatts/tar-split/archive/tar
+golang.org/x/oauth2/authhandler
+golang.org/x/oauth2/google
+golang.org/x/oauth2/google/externalaccount
+golang.org/x/oauth2/jws
+golang.org/x/oauth2/jwt
agentdarwinarm64
+45, -0
+cloud.google.com/go/compute/metadata
+github.com/DataDog/datadog-agent/cmd/agent/subcommands/ddot
+github.com/DataDog/datadog-agent/pkg/fleet/installer/config
+github.com/DataDog/datadog-agent/pkg/fleet/installer/env
+github.com/DataDog/datadog-agent/pkg/fleet/installer/errors
+github.com/DataDog/datadog-agent/pkg/fleet/installer/exec
+github.com/DataDog/datadog-agent/pkg/fleet/installer/oci
+github.com/DataDog/datadog-agent/pkg/fleet/installer/packages/file
+github.com/DataDog/datadog-agent/pkg/fleet/installer/packages/user
+github.com/DataDog/datadog-agent/pkg/fleet/installer/repository
+github.com/DataDog/datadog-agent/pkg/fleet/installer/symlink
+github.com/DataDog/datadog-agent/pkg/fleet/installer/tar
+github.com/containerd/stargz-snapshotter/estargz
+github.com/containerd/stargz-snapshotter/estargz/errorutil
+github.com/docker/cli/cli/config
+github.com/docker/cli/cli/config/configfile
+github.com/docker/cli/cli/config/credentials
+github.com/docker/cli/cli/config/memorystore
+github.com/docker/cli/cli/config/types
+github.com/docker/distribution/registry/client/auth/challenge
+github.com/docker/docker-credential-helpers/client
+github.com/docker/docker-credential-helpers/credentials
+github.com/google/go-containerregistry/pkg/authn
+github.com/google/go-containerregistry/pkg/compression
+github.com/google/go-containerregistry/pkg/logs
+github.com/google/go-containerregistry/pkg/name
+github.com/google/go-containerregistry/pkg/v1
+github.com/google/go-containerregistry/pkg/v1/empty
+github.com/google/go-containerregistry/pkg/v1/google
+github.com/google/go-containerregistry/pkg/v1/layout
+github.com/google/go-containerregistry/pkg/v1/match
+github.com/google/go-containerregistry/pkg/v1/mutate
+github.com/google/go-containerregistry/pkg/v1/partial
+github.com/google/go-containerregistry/pkg/v1/remote
+github.com/google/go-containerregistry/pkg/v1/remote/transport
+github.com/google/go-containerregistry/pkg/v1/stream
+github.com/google/go-containerregistry/pkg/v1/tarball
+github.com/google/go-containerregistry/pkg/v1/types
+github.com/sirupsen/logrus
+github.com/vbatts/tar-split/archive/tar
+golang.org/x/oauth2/authhandler
+golang.org/x/oauth2/google
+golang.org/x/oauth2/google/externalaccount
+golang.org/x/oauth2/jws
+golang.org/x/oauth2/jwt
agentaixppc64
+47, -0
+cloud.google.com/go/compute/metadata
+github.com/DataDog/datadog-agent/cmd/agent/subcommands/ddot
+github.com/DataDog/datadog-agent/pkg/fleet/installer/config
+github.com/DataDog/datadog-agent/pkg/fleet/installer/env
+github.com/DataDog/datadog-agent/pkg/fleet/installer/errors
+github.com/DataDog/datadog-agent/pkg/fleet/installer/exec
+github.com/DataDog/datadog-agent/pkg/fleet/installer/oci
+github.com/DataDog/datadog-agent/pkg/fleet/installer/packages/file
+github.com/DataDog/datadog-agent/pkg/fleet/installer/packages/user
+github.com/DataDog/datadog-agent/pkg/fleet/installer/repository
+github.com/DataDog/datadog-agent/pkg/fleet/installer/symlink
+github.com/DataDog/datadog-agent/pkg/fleet/installer/tar
+github.com/containerd/stargz-snapshotter/estargz
+github.com/containerd/stargz-snapshotter/estargz/errorutil
+github.com/docker/cli/cli/config
+github.com/docker/cli/cli/config/configfile
+github.com/docker/cli/cli/config/credentials
+github.com/docker/cli/cli/config/memorystore
+github.com/docker/cli/cli/config/types
+github.com/docker/distribution/registry/client/auth/challenge
+github.com/docker/docker-credential-helpers/client
+github.com/docker/docker-credential-helpers/credentials
+github.com/google/go-containerregistry/pkg/authn
+github.com/google/go-containerregistry/pkg/compression
+github.com/google/go-containerregistry/pkg/logs
+github.com/google/go-containerregistry/pkg/name
+github.com/google/go-containerregistry/pkg/v1
+github.com/google/go-containerregistry/pkg/v1/empty
+github.com/google/go-containerregistry/pkg/v1/google
+github.com/google/go-containerregistry/pkg/v1/layout
+github.com/google/go-containerregistry/pkg/v1/match
+github.com/google/go-containerregistry/pkg/v1/mutate
+github.com/google/go-containerregistry/pkg/v1/partial
+github.com/google/go-containerregistry/pkg/v1/remote
+github.com/google/go-containerregistry/pkg/v1/remote/transport
+github.com/google/go-containerregistry/pkg/v1/stream
+github.com/google/go-containerregistry/pkg/v1/tarball
+github.com/google/go-containerregistry/pkg/v1/types
+github.com/mitchellh/go-homedir
+github.com/sirupsen/logrus
+github.com/vbatts/tar-split/archive/tar
+golang.org/x/oauth2/authhandler
+golang.org/x/oauth2/google
+golang.org/x/oauth2/google/externalaccount
+golang.org/x/oauth2/jws
+golang.org/x/oauth2/jwt
+gopkg.in/evanphx/json-patch.v4
heroku-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/cmd/agent/subcommands/ddot

@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts bot commented Apr 15, 2026

Files inventory check summary

File checks results against ancestor f92774a0:

Results for datadog-agent_7.79.0~devel.git.836.0f906d0.pipeline.108099830-1_amd64.deb:

No change detected

@liustanley liustanley changed the title [OTAGENT-987] Add datadog-agent extension command [OTAGENT-987] Add datadog-agent extension install command Apr 15, 2026
@liustanley liustanley added the qa/rc-required Only for a PR that requires validation on the Release Candidate label Apr 15, 2026
@cit-pr-commenter-54b7da
Copy link
Copy Markdown

cit-pr-commenter-54b7da bot commented Apr 15, 2026

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 064881aa-b404-4fb5-9a1d-f8ad77e0c5d2

Baseline: 68ba423
Comparison: 0f906d0
Diff

Optimization Goals: ✅ No significant changes detected

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization +3.75 [+0.71, +6.79] 1 Logs

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization +3.75 [+0.71, +6.79] 1 Logs
tcp_syslog_to_blackhole ingress throughput +1.52 [+1.35, +1.68] 1 Logs
ddot_logs memory utilization +1.10 [+1.03, +1.17] 1 Logs
otlp_ingest_logs memory utilization +1.09 [+0.99, +1.19] 1 Logs
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization +0.34 [+0.28, +0.40] 1 Logs
docker_containers_memory memory utilization +0.32 [+0.24, +0.41] 1 Logs
ddot_metrics_sum_cumulativetodelta_exporter memory utilization +0.24 [+0.02, +0.47] 1 Logs
quality_gate_idle memory utilization +0.21 [+0.16, +0.27] 1 Logs bounds checks dashboard
ddot_metrics_sum_delta memory utilization +0.14 [-0.04, +0.31] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.03 [-0.37, +0.44] 1 Logs
uds_dogstatsd_to_api_v3 ingress throughput +0.02 [-0.19, +0.23] 1 Logs
ddot_metrics memory utilization +0.00 [-0.19, +0.19] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.00 [-0.20, +0.20] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput -0.00 [-0.12, +0.11] 1 Logs
file_to_blackhole_1000ms_latency egress throughput -0.02 [-0.45, +0.41] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.02 [-0.13, +0.09] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.02 [-0.57, +0.53] 1 Logs
ddot_metrics_sum_cumulative memory utilization -0.03 [-0.18, +0.12] 1 Logs
file_tree memory utilization -0.11 [-0.17, -0.06] 1 Logs
quality_gate_idle_all_features memory utilization -0.12 [-0.16, -0.08] 1 Logs bounds checks dashboard
otlp_ingest_metrics memory utilization -0.23 [-0.38, -0.08] 1 Logs
quality_gate_metrics_logs memory utilization -1.14 [-1.38, -0.90] 1 Logs bounds checks dashboard
quality_gate_logs % cpu utilization -2.95 [-4.58, -1.33] 1 Logs bounds checks dashboard

Bounds Checks: ❌ Failed

perf experiment bounds_check_name replicates_passed observed_value links
docker_containers_cpu simple_check_run 10/10 684 ≥ 26
docker_containers_memory memory_usage 10/10 282.43MiB ≤ 370MiB
docker_containers_memory simple_check_run 10/10 701 ≥ 26
file_to_blackhole_0ms_latency memory_usage 10/10 0.19GiB ≤ 1.20GiB
file_to_blackhole_0ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_1000ms_latency memory_usage 10/10 0.24GiB ≤ 1.20GiB
file_to_blackhole_1000ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_100ms_latency memory_usage 10/10 0.20GiB ≤ 1.20GiB
file_to_blackhole_100ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_500ms_latency memory_usage 10/10 0.22GiB ≤ 1.20GiB
file_to_blackhole_500ms_latency missed_bytes 10/10 0B = 0B
quality_gate_idle intake_connections 0/10 4 > 3 bounds checks dashboard
quality_gate_idle memory_usage 10/10 175.75MiB ≤ 181MiB bounds checks dashboard
quality_gate_idle_all_features intake_connections 2/10 4 > 3 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 501.15MiB ≤ 550MiB bounds checks dashboard
quality_gate_logs intake_connections 10/10 4 ≤ 6 bounds checks dashboard
quality_gate_logs memory_usage 10/10 204.13MiB ≤ 220MiB bounds checks dashboard
quality_gate_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 364.76 ≤ 2000 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 4 ≤ 6 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 446.35MiB ≤ 475MiB bounds checks dashboard
quality_gate_metrics_logs missed_bytes 10/10 0B = 0B bounds checks dashboard

Explanation

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

CI Pass/Fail Decision

Failed. Some Quality Gates were violated.

  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 0/10 replicas passed. Failed 10 which is > 0. Gate FAILED.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 2/10 replicas passed. Failed 8 which is > 0. Gate FAILED.

@liustanley liustanley marked this pull request as ready for review April 15, 2026 21:08
@liustanley liustanley requested review from a team as code owners April 15, 2026 21:08
@liustanley liustanley requested a review from dustmop April 15, 2026 21:08
@liustanley liustanley added this to the 7.79.0 milestone Apr 15, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c3d69f3910

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread cmd/agent/subcommands/extension/command.go Outdated
Comment thread cmd/agent/subcommands/extension/command.go Outdated
Comment thread cmd/agent/subcommands/extension/command.go Outdated
Comment thread cmd/agent/subcommands/extension/command.go Outdated
Comment thread pkg/fleet/installer/exec/installer_exec.go
Comment thread test/new-e2e/tests/installer/unix/package_ddot_test.go
@liustanley liustanley requested a review from Stanislas167 April 16, 2026 12:41
@liustanley liustanley added the backport/7.78.x Automatically create a backport PR to the 7.78.x branch once the PR is merged label Apr 16, 2026
Comment thread cmd/agent/subcommands/ddot/command.go
Comment thread cmd/agent/subcommands/extension/command.go Outdated
@github-actions github-actions bot added long review PR is complex, plan time to review it and removed medium review PR review might take time labels Apr 16, 2026
Copy link
Copy Markdown
Contributor

@dustmop dustmop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with a few nits / questions.

Comment thread cmd/agent/subcommands/ddot/command.go
Comment thread cmd/agent/subcommands/extension/command.go Outdated
Use: "extension [command]",
Short: "Manage agent package extensions",
}
extensionCmd.AddCommand(installCommand(), removeCommand())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with this feature, so this might not be a useful question, but does it make sense to also have a command like datadog-agent extension list to see what is already installed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that could definitely be helpful, but could be added in a follow up PR. @Stanislas167 what do you think?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed with this comment 💯

Copy link
Copy Markdown
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Please make sure you validate the environment variable propagation works as expected.

Comment thread .github/CODEOWNERS Outdated
Use: "extension [command]",
Short: "Manage agent package extensions",
}
extensionCmd.AddCommand(installCommand(), removeCommand())
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed with this comment 💯

if err != nil {
return err
}
return i.InstallExtensions(context.Background(), url, args)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if the child's process will automagically inherit the environment variables from the caller process. Please make sure you test this, and if it's not the case, make sure they're propagated.

@liustanley liustanley changed the title [OTAGENT-987] Add datadog-agent extension install command [OTAGENT-987] Add datadog-agent ddot install command Apr 16, 2026
@liustanley
Copy link
Copy Markdown
Contributor Author

Updated command name from datadog-agent extension install ddot -> datadog-agent ddot install as discussed on slack with @arbll

@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts bot commented Apr 16, 2026

Gitlab CI Configuration Changes

Modified Jobs

new-e2e-windows-ddot-package-a7-x86_64
  new-e2e-windows-ddot-package-a7-x86_64:
    after_script:
    - CODECOV_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $CODECOV token) || exit
      $?; export CODECOV_TOKEN
    - $CI_PROJECT_DIR/tools/ci/junit_upload.sh "junit-${CI_JOB_ID}.tgz" "$E2E_RESULT_JSON"
    - "if [ -d \"$E2E_COVERAGE_OUT_DIR\" ]; then\n  dda inv -- -e coverage.process-e2e-coverage-folders\
      \ $E2E_COVERAGE_OUT_DIR\n  dda inv -- -e dyntest.compute-and-upload-job-index\
      \ --bucket-uri $S3_PERMANENT_ARTIFACTS_URI --coverage-folder $E2E_COVERAGE_OUT_DIR\
      \ --commit-sha $CI_COMMIT_SHA --job-id $CI_JOB_ID\nfi\n"
    artifacts:
      expire_in: 2 weeks
      paths:
      - $E2E_OUTPUT_DIR
      - $E2E_RESULT_JSON
      - junit-*.tgz
      - $E2E_COVERAGE_OUT_DIR
      reports:
        annotations:
        - $EXTERNAL_LINKS_PATH
      when: always
    before_script:
    - CURRENT_AGENT_ASSERT_VERSION=$(dda inv agent.version) || exit $?; export CURRENT_AGENT_ASSERT_VERSION
    - CURRENT_AGENT_ASSERT_PACKAGE_VERSION=$(dda inv agent.version --url-safe)-1 ||
      exit $?; export CURRENT_AGENT_ASSERT_PACKAGE_VERSION
    - mkdir -p $GOPATH/pkg/mod/cache && zstd -dc modcache_e2e.tar.zst | tar xf - -C
      $GOPATH/pkg/mod/cache
    - rm -f modcache_e2e.tar.zst
    - mkdir -p ~/.pulumi && zstd -dc pulumi_plugins.tar.zst | tar xf - -C ~/.pulumi
    - rm -f pulumi_plugins.tar.zst
    - mkdir -p $GOPATH/bin $GOPATH/pkg/mod/cache && zstd -dc modcache_tools.tar.zst
      | tar xf - -C $GOPATH
    - rm -f modcache_tools.tar.zst
    - export PATH=$PATH:$GOPATH/bin
    - mkdir -p ~/.aws
    - "if [ -n \"$E2E_USE_AWS_PROFILE\" ]; then\n  echo Using agent-qa-ci aws profile\n\
      \  $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_QA_E2E profile >> ~/.aws/config\
      \ || exit $?\n  # Now all `aws` commands target the agent-qa profile\n  export\
      \ AWS_PROFILE=agent-qa-ci\nelse\n  # Assume role to fetch only once credentials\
      \ and avoid rate limits\n  echo Assuming ddbuild-agent-ci role\n  roleoutput=\"\
      $(aws sts assume-role --role-arn arn:aws:iam::669783387624:role/ddbuild-agent-ci\
      \ --external-id ddbuild-agent-ci --role-session-name RoleSession)\"\n  export\
      \ AWS_ACCESS_KEY_ID=\"$(echo \"$roleoutput\" | jq -r '.Credentials.AccessKeyId')\"\
      \n  export AWS_SECRET_ACCESS_KEY=\"$(echo \"$roleoutput\" | jq -r '.Credentials.SecretAccessKey')\"\
      \n  export AWS_SESSION_TOKEN=\"$(echo \"$roleoutput\" | jq -r '.Credentials.SessionToken')\"\
      \nfi\n"
    - $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_QA_E2E ssh_public_key_rsa > $E2E_AWS_PUBLIC_KEY_PATH
      || exit $?
    - touch $E2E_AWS_PRIVATE_KEY_PATH && chmod 600 $E2E_AWS_PRIVATE_KEY_PATH && $CI_PROJECT_DIR/tools/ci/fetch_secret.sh
      $AGENT_QA_E2E ssh_key_rsa > $E2E_AWS_PRIVATE_KEY_PATH || exit $?
    - $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_QA_E2E ssh_public_key_rsa > $E2E_AZURE_PUBLIC_KEY_PATH
      || exit $?
    - touch $E2E_AZURE_PRIVATE_KEY_PATH && chmod 600 $E2E_AZURE_PRIVATE_KEY_PATH &&
      $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_QA_E2E ssh_key_rsa > $E2E_AZURE_PRIVATE_KEY_PATH
      || exit $?
    - $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_QA_E2E ssh_public_key_rsa > $E2E_GCP_PUBLIC_KEY_PATH
      || exit $?
    - touch $E2E_GCP_PRIVATE_KEY_PATH && chmod 600 $E2E_GCP_PRIVATE_KEY_PATH && $CI_PROJECT_DIR/tools/ci/fetch_secret.sh
      $AGENT_QA_E2E ssh_key_rsa > $E2E_GCP_PRIVATE_KEY_PATH || exit $?
    - pulumi login "s3://dd-pulumi-state?region=us-east-1&awssdk=v2&profile=$AWS_PROFILE"
    - ARM_CLIENT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_AZURE client_id)
      || exit $?; export ARM_CLIENT_ID
    - ARM_CLIENT_SECRET=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_AZURE token)
      || exit $?; export ARM_CLIENT_SECRET
    - ARM_TENANT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_AZURE tenant_id)
      || exit $?; export ARM_TENANT_ID
    - ARM_SUBSCRIPTION_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_AZURE subscription_id)
      || exit $?; export ARM_SUBSCRIPTION_ID
    - $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_GCP credentials_json > ~/gcp-credentials.json
      || exit $?
    - export GOOGLE_APPLICATION_CREDENTIALS=~/gcp-credentials.json
    - 'gcp_acr_key=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_GCP credentials_acr_readonly)
      || exit $?
  
      export E2E_GCP_IMAGE_PULL_PASSWORD="b64=$(printf ''%s'' "$gcp_acr_key" | base64
      -w 0)"
  
      '
    - dda inv -- -e gitlab.generate-ci-visibility-links --output=$EXTERNAL_LINKS_PATH
    - export DD_ENV=nativetest
    - export DD_CIVISIBILITY_ENABLED=true
    - export DD_CIVISIBILITY_AGENTLESS_ENABLED=true
    - export DD_CIVISIBILITY_FLAKY_RETRY_ENABLED=false
    - export DD_TAGS="gitlab.pipeline_source:${CI_PIPELINE_SOURCE}"
    - DD_API_KEY=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_API_KEY_ORG2 token)
      || exit $?; export DD_API_KEY
    - export WINDOWS_DDNPM_DRIVER=${WINDOWS_DDNPM_DRIVER:-$(dda inv release.get-release-json-value
      "dependencies::WINDOWS_DDNPM_DRIVER" --no-worktree)}
    - export WINDOWS_DDPROCMON_DRIVER=${WINDOWS_DDPROCMON_DRIVER:-$(dda inv release.get-release-json-value
      "dependencies::WINDOWS_DDPROCMON_DRIVER" --no-worktree)}
    image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
    needs:
    - go_e2e_deps
    - go_e2e_test_binaries
    - go_tools_deps
    - job: new-e2e-base-coverage
      optional: true
    - deploy_windows_testing-a7
    - deploy_installer_oci
    - deploy_agent_oci
    - qa_installer_script_windows
    parallel:
      matrix:
      - EXTRA_PARAMS: --run "TestDDOTExtensionViaMSI$/TestInstallAndUninstallDDOTExtension$"
      - EXTRA_PARAMS: --run "TestDDOTExtensionViaMSI$/TestUpgradeEnablesDDOTExtension$"
      - EXTRA_PARAMS: --run "TestDDOTExtensionMSIUpgrade$/TestUpgradePreservesDDOTExtension$"
      - EXTRA_PARAMS: --run "TestDDOTExtensionViaInstallScript$/TestInstallAndPurgeDDOTExtension$"
+     - EXTRA_PARAMS: --run "TestDDOTExtensionViaSubcommand$/TestInstallDDOTSubcommand$"
    rules:
    - if: $DEPLOY_AGENT == "true" || $DDR_WORKFLOW_ID != null
    - if: $RUN_E2E_TESTS == "off"
      when: never
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - if: $RUN_E2E_TESTS == "on"
      when: on_success
    - if: $CI_COMMIT_BRANCH == "main"
      when: on_success
    - if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
      when: on_success
    - if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$/
      when: on_success
    - changes:
        compare_to: $COMPARE_TO_BRANCH
        paths:
        - .gitlab/test/e2e/e2e.yml
        - test/e2e-framework/**/*
        - test/new-e2e/go.mod
        - flakes.yaml
        - release.json
    - changes:
        compare_to: $COMPARE_TO_BRANCH
        paths:
        - tools/windows/DatadogAgentInstaller/**/*
        - .gitlab/windows/test/e2e_install_packages/windows.yml
        - test/new-e2e/tests/windows/install-test/**/*
        - test/new-e2e/tests/windows/domain-test/**/*
        - tasks/msi.py
        - omnibus/python-scripts/**/*
        - omnibus/lib/**/*
        - omnibus/config/projects/agent.rb
        - omnibus/config/software/**/*
        - omnibus/config/templates/**/*
        - release.json
      when: on_success
    - if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
      when: never
    - allow_failure: true
      when: manual
    script:
    - export IS_DEV_BRANCH="$(dda inv -- -e pipeline.is-dev-branch)"
    - DYNAMIC_TESTS_BREAKGLASS=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $DYNAMIC_TESTS_BREAKGLASS
      value) || exit $?; export DYNAMIC_TESTS_BREAKGLASS
    - "if [ \"$DYNAMIC_TESTS_BREAKGLASS\" == \"true\" ] || [ \"$IS_DEV_BRANCH\" == \"\
      false\" ] || [ \"$RUN_E2E_TESTS\" == \"on\" ]; then\n  export DYNAMIC_TESTS_FLAG=\"\
      \"\nfi\n"
    - export E2E_IMAGE_PULL_PASSWORD=$(aws ecr get-login-password),$E2E_GCP_IMAGE_PULL_PASSWORD
    - dda inv -- -e new-e2e-tests.run $DYNAMIC_TESTS_FLAG $PRE_BUILT_BINARIES_FLAG $MAX_RETRIES_FLAG
      --local-package $CI_PROJECT_DIR/$OMNIBUS_BASE_DIR --result-json $E2E_RESULT_JSON
      --targets $TARGETS --junit-tar junit-${CI_JOB_ID}.tgz ${EXTRA_PARAMS} --test-washer
      --logs-folder=$E2E_OUTPUT_DIR/logs --logs-post-processing --logs-post-processing-test-depth=$E2E_LOGS_PROCESSING_TEST_DEPTH
    stage: e2e_install_packages
    tags:
    - arch:amd64
    - specific:true
    timeout: 45m
    variables:
      AGENT_MAJOR_VERSION: 7
      DYNAMIC_TESTS_FLAG: --impacted
      E2E_AWS_PRIVATE_KEY_PATH: /tmp/agent-qa-aws-ssh-key
      E2E_AWS_PUBLIC_KEY_PATH: /tmp/agent-qa-aws-ssh-key.pub
      E2E_AZURE_PRIVATE_KEY_PATH: /tmp/agent-qa-azure-ssh-key
      E2E_AZURE_PUBLIC_KEY_PATH: /tmp/agent-qa-azure-ssh-key.pub
      E2E_COMMIT_SHA: $CI_COMMIT_SHORT_SHA
      E2E_COVERAGE_OUT_DIR: $CI_PROJECT_DIR/coverage
      E2E_GCP_PRIVATE_KEY_PATH: /tmp/agent-qa-gcp-ssh-key
      E2E_GCP_PUBLIC_KEY_PATH: /tmp/agent-qa-gcp-ssh-key.pub
      E2E_IMAGE_PULL_REGISTRY: 669783387624.dkr.ecr.us-east-1.amazonaws.com,us-central1-docker.pkg.dev
      E2E_IMAGE_PULL_USERNAME: AWS,_json_key
      E2E_KEY_PAIR_NAME: datadog-agent-ci-rsa
      E2E_LOGS_PROCESSING_TEST_DEPTH: 1
      E2E_OUTPUT_DIR: $CI_PROJECT_DIR/e2e-output
      E2E_PIPELINE_ID: $CI_PIPELINE_ID
      E2E_RESULT_JSON: $CI_PROJECT_DIR/e2e_test_output.json
      E2E_SKIP_WINDOWS: $SKIP_WINDOWS
      E2E_USE_AWS_PROFILE: 'true'
      EXTERNAL_LINKS_PATH: external_links_$CI_JOB_ID.json
      EXTRA_PARAMS: --run "TestDDOTInstalls|TestAgentMSIInstallsDDOTPackage"
      FLAKY_PATTERNS_CONFIG: $CI_PROJECT_DIR/flaky-patterns-runtime.yaml
      GIT_STRATEGY: clone
      KUBERNETES_CPU_REQUEST: 6
      KUBERNETES_MEMORY_LIMIT: 16Gi
      KUBERNETES_MEMORY_REQUEST: 12Gi
      MAX_RETRIES_FLAG: ''
      PRE_BUILT_BINARIES_FLAG: --use-prebuilt-binaries
      REMOTE_STACK_CLEANING: 'true'
      SHOULD_RUN_IN_FLAKES_FINDER: 'true'
      TARGETS: ./tests/installer/windows
      TEAM: windows-products

Changes Summary

Removed Modified Added Renamed
0 1 0 0

ℹ️ Diff available in the job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/7.78.x Automatically create a backport PR to the 7.78.x branch once the PR is merged internal Identify a non-fork PR long review PR is complex, plan time to review it qa/rc-required Only for a PR that requires validation on the Release Candidate team/agent-configuration team/windows-products

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants