-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(origin detection): send both container ID and Entity ID #828
feat(origin detection): send both container ID and Entity ID #828
Conversation
Links to DataDog/datadog-go#300 |
fd9db81
to
87abc5a
Compare
Signed-off-by: Wassim DHIF <wassim.dhif@datadoghq.com>
87abc5a
to
f171e20
Compare
I've added a unit test showing both Entity ID and container ID in the same metric. |
/merge |
🚂 MergeQueue Pull request added to the queue. This build is going to start soon! (estimated merge in less than 0s) Use |
/merge |
🚂 MergeQueue Pull request added to the queue. This build is going to start soon! (estimated merge in less than 0s) Use |
What does this PR do?
We would like customers to be able to retrieve container tags even when
DD_ENTITY_ID
is set. Currently the library does not send the container ID if the Entity ID is set.For those who do not want container tags, several alternatives are possible:
dd.internal.card=none
.DD_ORIGIN_DETECTION_ENABLED=false
to the application pod.Description of the Change
Remove checks for
DD_ENTITY_ID
when resolving container ID.Possible Drawbacks
Verification Process
To make sure that this is working as intended, create a new pod with the following manifest:
You should still be able to get the following metrics with container tags such as
container_id
:dummy_dsd_udp_python.increment
dummy_dsd_udp_python.decrement
We can see that, with an agent cardinality set as
high
:dd.internal.card:low
, we don't get container tags (only pod tags).dd.internal.card:low
, we don't get container tags (only pod tags).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.