Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
The pull request must only fix one issue, or add one feature, at the time.
The pull request must update the test suite to demonstrate the changed functionality.
After you create the pull request, all status checks must be pass before a maintainer reviews your contribution. For more details, please see CONTRIBUTING.
What does this PR do?
Implements the support of Origin Detection when the container ID is unavailable from inside the container by using the inode resolution mechanic. The original Go implementation is here: https://github.com/DataDog/datadog-go/pull/291
Description of the Change
If we are not able to find the container ID from inside the container, we will send instead the cgroup inode to be able to resolve the container ID on the Agent side.
Alternate Designs
Possible Drawbacks
Verification Process
Use the following deployment on a k8s cluster running cgroupv2:
Requirements for Contributing to this repository
What does this PR do?
Implements the support of Origin Detection when the container ID is unavailable from inside the container by using the inode resolution mechanic. The original Go implementation is here: https://github.com/DataDog/datadog-go/pull/291
Description of the Change
If we are not able to find the container ID from inside the container, we will send instead the cgroup inode to be able to resolve the container ID on the Agent side.
Alternate Designs
Possible Drawbacks
Verification Process
Use the following deployment on a k8s cluster running
cgroupv2
:You should then be able to find a
dummy.dsd.python.metric
with acontainer_id
tag.Additional Notes
Release Notes
Review checklist (to be filled by reviewers)
changelog/
label attached. If applicable it should have thebackward-incompatible
label attached.do-not-merge/
label attached.kind/
andseverity/
labels attached at least.