Skip to content

enhancement: default dataPlane.dogstatsd.enabled to true#2935

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits intomainfrom
jszwedko/adp-dogstatsd-truth-table
Apr 27, 2026
Merged

enhancement: default dataPlane.dogstatsd.enabled to true#2935
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits intomainfrom
jszwedko/adp-dogstatsd-truth-table

Conversation

@jszwedko
Copy link
Copy Markdown
Contributor

@jszwedko jszwedko commented Apr 24, 2026

Summary

When dataPlane.enabled: true is set, ADP now handles DogStatsD by default. Previously, users also had to set dataPlane.dogstatsd.enabled: true explicitly; this change removes that requirement by flipping the default to true so that only one configuration option has to be set.

This is part of a series implementing the DogStatsD routing truth table described in DataDog/saluki#1334.

Test plan

  • New unit test: data plane enabled without explicit dogstatsd config - DSD routes to ADP by default
  • All existing dogstatsd feature tests pass
  • DDAI reconcile tests updated with new spec hashes

🤖 Generated with Claude Code

Tracked by DADP-38

When dataPlane.enabled=true, ADP now handles DogStatsD by default.
Setting dataPlane.dogstatsd.enabled: false explicitly opts back to
Core Agent handling DSD.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jszwedko jszwedko changed the title feat: default dataPlane.dogstatsd.enabled to true enhancement: default dataPlane.dogstatsd.enabled to true Apr 24, 2026
@jszwedko jszwedko marked this pull request as ready for review April 24, 2026 21:34
@jszwedko jszwedko requested a review from a team April 24, 2026 21:34
@jszwedko jszwedko requested review from a team as code owners April 24, 2026 21:34
@jszwedko jszwedko added this to the v1.26.0 milestone Apr 24, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@levan-m levan-m modified the milestones: v1.26.0, v1.27.0 Apr 24, 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: 0aecfd1d0c

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread api/datadoghq/v2alpha1/datadogagent_types.go
@datadog-prod-us1-4

This comment has been minimized.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 24, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 40.69%. Comparing base (039572f) to head (b2969dd).

Files with missing lines Patch % Lines
...nal/controller/datadogagent/feature/utils/utils.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2935   +/-   ##
=======================================
  Coverage   40.69%   40.69%           
=======================================
  Files         321      321           
  Lines       28413    28413           
=======================================
  Hits        11563    11563           
  Misses      16015    16015           
  Partials      835      835           
Flag Coverage Δ
unittests 40.69% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...ller/datadogagent/defaults/datadogagent_default.go 87.08% <ø> (ø)
...nal/controller/datadogagent/feature/utils/utils.go 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 039572f...b2969dd. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…led default change

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jszwedko jszwedko requested a review from a team as a code owner April 24, 2026 21:53
Copy link
Copy Markdown

@webern webern left a comment

Choose a reason for hiding this comment

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

LGTM

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit 953ade2 into main Apr 27, 2026
52 of 53 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the jszwedko/adp-dogstatsd-truth-table branch April 27, 2026 17:36
gh-worker-dd-mergequeue-cf854d Bot pushed a commit that referenced this pull request May 4, 2026
…s DSD (#2965)

dogstatsd: drop DD_USE_DOGSTATSD=false override when dataPlane handles DSD

The Core Agent now observes data_plane.enabled and delegates DogStatsD to
the Data Plane on its own (DataDog/datadog-agent#49891), so the operator
no longer needs to set DD_USE_DOGSTATSD=false on the Core Agent (or on
the single-container agent) when the dataPlane feature handles DSD.

Combined with #2935 (which defaults dataPlane.dogstatsd.enabled to true),
enabling dataPlane.enabled is sufficient to route DSD onto ADP.

Address review: clarify comment, drop negative env-var assertions

- Mention both data_plane.enabled and data_plane.dogstatsd.enabled in
  ManageNodeAgent's comment, since the Core Agent uses both to decide
  whether to run DogStatsD itself or delegate it to ADP.
- Remove the now-superfluous DD_USE_DOGSTATSD assertions from the unit
  and e2e tests (no need to negatively assert the env var is unset),
  along with the assertContainerDoesNotHaveEnvVar helper.

dogstatsd: gate DD_USE_DOGSTATSD=false removal on Agent >= 7.75

On Agent < 7.75, DD_DATA_PLANE_ENABLED / DD_DATA_PLANE_DOGSTATSD_ENABLED
are unrecognised so the Core Agent starts DSD regardless, causing a bind
conflict with ADP. Restore the explicit DD_USE_DOGSTATSD=false override
for those agents while keeping the cleaner no-override path for >= 7.75.

Uses the existing IsAboveMinVersion / GetAgentVersionFromImage machinery
(same pattern as ProcessConfig, AppSec, KSM Core). Unknown / custom image
tags fall back to AgentLatestVersion (7.77.2 > 7.75.0 → no override).

fix lint: gci alignment in struct fields and const block

Co-authored-by: jesse.szwedko <jesse.szwedko@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants