Skip to content
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

[PROC-252] add ContainerHostType field to all messages #49

Merged
merged 3 commits into from
Apr 7, 2020

Conversation

shang-wang
Copy link
Contributor

Right now the only host related field for a container message is HostName. The problem comes up when some types of containers are not running in host-based environment, for example fargate ECS and EKS.

Currently we had to detect prefix in HostName to create special case for fargate containers in the backend host resolution. Having an additional field would provide backend more flexibility to generalize these cases.

@DataDog/processes

@@ -93,6 +102,8 @@ message CollectorContainer {

// Post-resolved fields
Host host = 8;

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we mark fields 6 & 7 as reserved if we aren't using them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure whether they are used or not, grepping datadog-agent repo doesn't seem like it. I'll work on agent code first and come back to this clean up later.

Copy link
Member

Choose a reason for hiding this comment

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

Fields 6 and 7 are still used by older agents and our tag handling code parses them so we'll have to keep them around for now unfortuantely.

@shang-wang shang-wang changed the title [PROC-252] add ContainerHostType field to CollectorContainer message [PROC-252] add ContainerHostType field to all messages Apr 6, 2020
@shang-wang shang-wang merged commit 2c57260 into master Apr 7, 2020
@shang-wang shang-wang deleted the shang/container-host-type branch April 7, 2020 19:20
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