Repository navigation
Stop using container runtime sockets - #403
Conversation
Drop the containerd/cri build tags and CRI/Docker socket plumbing; kubelet and cgroups provide container data.
|
Added: points at the fork commit that logs the missing PodResources socket message at debug. |
There was a problem hiding this comment.
🟡 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
LouisParkin
left a comment
There was a problem hiding this comment.
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.2so the pin doesn't rely on a PR branch. - The trade-offs in the description (no image-label/ENV tags, host
containerd-shimprocesses possibly not attributed, nothing for containers outside kubelet) seem acceptable given RKE1 is EOL. Worth a line in the release notes.
|
Repointed the fork dependency at the merged commit of StackVista/datadog-agent-upstream-for-process-agent#857. |

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,
/procand the kubelet, so this drops thecontainerd/cribuild tags, theSTS_CRI_SOCKET_PATH/cri_socket_pathplumbing 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. Hostcontainerd-shimprocesses 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