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

Beats can loose events when using kubernetes autodiscovery #17246

Closed
brunotm opened this issue Mar 25, 2020 · 1 comment · Fixed by #17223
Closed

Beats can loose events when using kubernetes autodiscovery #17246

brunotm opened this issue Mar 25, 2020 · 1 comment · Fixed by #17223
Assignees
Labels
autodiscovery containers Related to containers use case Team:Platforms Label for the Integrations - Platforms team

Comments

@brunotm
Copy link
Contributor

brunotm commented Mar 25, 2020

  • Version: 7.6.1 (and previous)
  • Operating System: Linux (any)
  • Steps to Reproduce: Run kubernetes cronjobs or any pod that runs to completion.

OnUpdate() in kubernetes autodiscovery provider uses the ObjectMeta.DeletionTimestamp to determine if a stop event should be emitted. ObjectMeta.DeletionTimestamp is only present for deleted pods and when a pod runs to completion (eg. pods generated by conjobs), OnUpdate() will treat it as an update (stop/start) and emit a pod stop event disrespecting the CleanupTimeout and leading to early termination of running beats.

Fixed on #17223

/cc @blakerouse @exekias

@blakerouse blakerouse added autodiscovery containers Related to containers use case Team:Platforms Label for the Integrations - Platforms team labels Mar 25, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

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

Successfully merging a pull request may close this issue.

3 participants