Skip to content

fix finding docker container IP address for networks from other containers #12726

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

Closed
wants to merge 2 commits into from

Conversation

marqc
Copy link
Contributor

@marqc marqc commented Jun 30, 2019

Fixes code finding container IP in docker, when network is configured from other container. As discussed in other PR #12310 (comment)

Additionally exposes this IP information in docker metadata from add_docker_metadata processor.

@marqc marqc requested a review from a team as a code owner June 30, 2019 16:36
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@exekias exekias added review Stalled Team:Platforms Label for the Integrations - Platforms team labels Feb 28, 2020
@exekias
Copy link
Contributor

exekias commented Feb 28, 2020

I'm so sorry this slipped through 🙏 . Would you be able to retake it? we could start by updating the PR description and explain a little bit about the change and why it's needed

@@ -183,6 +183,10 @@ func (d *addDockerMetadata) Run(event *beat.Event) (*beat.Event, error) {
meta.Put("container.labels", labels)
}

if len(container.IPAddresses) > 0 {
meta.Put("container.ipaddresses", container.IPAddresses)
Copy link
Contributor

Choose a reason for hiding this comment

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

We were not exposing this until now, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Stalled Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants