Skip to content

Stop using container runtime sockets - #403

Merged
craffit merged 3 commits into
masterfrom
drop-container-runtime-sockets
Nov 24, 2026
Merged

craffit merged 3 commits into
masterfrom
drop-container-runtime-sockets

Conversation

@craffit

@craffit craffit commented Nov 23, 2026

Copy link
Copy Markdown

The agent chart stops mounting the Docker, containerd and CRI-O sockets. Container metrics, process-to-container mapping and pod lookup already come from cgroups, /proc and the kubelet, so this drops the containerd/cri build tags, the STS_CRI_SOCKET_PATH / cri_socket_path plumbing and the Docker socket info. The process agent no longer probes or logs about runtime sockets, and the containerd/CRI client libraries leave the binary.

Lost: tags derived from image labels or image ENV (e.g. git.commit.sha), which nothing consumes. Host containerd-shim processes may also stop showing up.

Depends on StackVista/datadog-agent-upstream-for-process-agent#857 (go.mod points at that branch; repoint after merge).
Tracking: https://github.com/StackVista/stackstate/issues/915

🤖 Generated with Claude Code

Drop the containerd/cri build tags and CRI/Docker socket plumbing; kubelet and cgroups provide container data.
@craffit

craffit commented Nov 24, 2026

Copy link
Copy Markdown
Author

Added: points at the fork commit that logs the missing PodResources socket message at debug.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Default autoconfiguration still invokes Docker and CRI socket detection, allowing runtime socket probes and INFO logs despite the intended removal.

1 open issue
What changed in this PR

This PR removes process-agent configuration and build support for container runtime sockets, relying on existing cgroup, /proc, and kubelet data sources. It updates the upstream dependency to support that transition.

Changes:

  • Removes runtime build tags from build and test commands.
  • Deletes CRI socket configuration and Docker socket probing/status output.
  • Updates upstream module pins and checksums for the companion changes in #857.
File Description
README.md Updates documented test build tags.
k8s-deployment/​Makefile Removes runtime tags from end-to-end tests.
gorake.rb Removes CRI and containerd build tags.
go.sum Updates upstream dependency checksums.
go.mod Pins upstream modules to the companion revision.
config/​yaml_config.go Removes YAML CRI socket configuration.
config/​dd_config.go Stops forwarding the CRI socket environment setting.
config/​dd_config_test.go Removes CRI socket configuration assertions.
config/​config.go Removes the CRI socket field and environment parsing.
cmd/​agent/​main_common.go Removes explicit Docker socket probing.
cmd/​agent/​info.go Removes Docker socket status reporting.
cmd/​agent/​info_test.go Updates expected status output.

Review effort: Balanced

Comment thread go.mod Resolved

@LouisParkin LouisParkin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM. The build-tag, config key, env and status cleanup is consistent, and CI is green on both arches. Two things before merging:

  • The go.mod pin targets the datadog-agent-upstream-for-process-agent#857 head. Once #857 merges, re-point it to the commit on stackstate-7.62.2 so the pin doesn't rely on a PR branch.
  • The trade-offs in the description (no image-label/ENV tags, host containerd-shim processes possibly not attributed, nothing for containers outside kubelet) seem acceptable given RKE1 is EOL. Worth a line in the release notes.

@craffit

craffit commented Nov 24, 2026

Copy link
Copy Markdown
Author

Repointed the fork dependency at the merged commit of StackVista/datadog-agent-upstream-for-process-agent#857.

@craffit
craffit enabled auto-merge November 24, 2026 12:46
@craffit
craffit merged commit 6c6a198 into master Nov 24, 2026
10 checks passed
@craffit
craffit deleted the drop-container-runtime-sockets branch November 24, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants