Conversation
Member
Author
|
Links to DataDog/datadog-go#300 |
fd9db81 to
87abc5a
Compare
Signed-off-by: Wassim DHIF <wassim.dhif@datadoghq.com>
87abc5a to
f171e20
Compare
Member
Author
|
I've added a unit test showing both Entity ID and container ID in the same metric. |
HantingZhang2
approved these changes
Apr 29, 2024
gh123man
approved these changes
May 6, 2024
Member
Author
|
/merge |
|
🚂 MergeQueue Pull request added to the queue. This build is going to start soon! (estimated merge in less than 0s) Use |
Member
Author
|
/merge |
|
🚂 MergeQueue Pull request added to the queue. This build is going to start soon! (estimated merge in less than 0s) Use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
We would like customers to be able to retrieve container tags even when
DD_ENTITY_IDis 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=falseto the application pod.Description of the Change
Remove checks for
DD_ENTITY_IDwhen 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.incrementdummy_dsd_udp_python.decrementWe 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-incompatiblelabel attached.do-not-merge/label attached.kind/andseverity/labels attached at least.