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

Make kubernetes autodiscover ignore events with empty container IDs #7971

Merged
merged 1 commit into from
Aug 15, 2018

Conversation

vjsamuel
Copy link
Contributor

There are scenarios where filebeat/metricbeat come up before the container is marked as Running. This would mean that the container's ID would not be persisted in the Pod object. With autodiscover has an infinite retry which keeps retrying the failed configuration even after another event was generated with the container ID.

This PR makes sure that an event without a container ID is ignored as neither filebeat nor metricbeat would have any use for it. Both would spin up a config after the container ID is available.

@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?

@ruflin
Copy link
Member

ruflin commented Aug 15, 2018

jenkins, test this

Copy link
Member

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

LGTM. Waiting for green.

@exekias Will merge it but would be good to still have a look when you are back.

@ruflin ruflin added review containers Related to containers use case labels Aug 15, 2018
@ruflin ruflin merged commit 9095426 into elastic:master Aug 15, 2018
@exekias exekias added needs_backport PR is waiting to be backported to other branches. v6.4.0 v7.0.0-alpha1 v6.5.0 and removed v6.5.0 labels Aug 20, 2018
exekias pushed a commit to exekias/beats that referenced this pull request Aug 23, 2018
@exekias exekias added v6.4.0 and removed needs_backport PR is waiting to be backported to other branches. labels Aug 23, 2018
exekias pushed a commit to exekias/beats that referenced this pull request Aug 23, 2018
@exekias exekias added the v6.5.0 label Aug 23, 2018
andrewvc pushed a commit that referenced this pull request Aug 23, 2018
jsoriano pushed a commit that referenced this pull request Aug 24, 2018
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants