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

Collect the data on the actual oomkilled container instead of the first one #1192

Merged

Conversation

RobertSzefler
Copy link
Contributor

No description provided.

@RobertSzefler RobertSzefler force-pushed the feature/main-1087/oom-kill-data-collection-improvements branch from 019aa50 to a32c2fb Compare November 29, 2023 11:04
@RobertSzefler RobertSzefler force-pushed the feature/main-1087/oom-kill-data-collection-improvements branch from a32c2fb to b5b7646 Compare November 29, 2023 13:10
@RobertSzefler RobertSzefler marked this pull request as ready for review November 29, 2023 16:22
Copy link
Contributor

@arikalon1 arikalon1 left a comment

Choose a reason for hiding this comment

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

looks good
left small comment

@@ -160,7 +160,6 @@ builtinPlaybooks:
rate_limit: 3600
actions:
- pod_oom_killer_enricher: {}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should state explicitly attach_logs: true here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done



class OomKillParams(ActionParams):
attach_logs: Optional[bool] = True
Copy link
Contributor

Choose a reason for hiding this comment

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

For backward compatibility, I think the default should be false
If someone is using this action, on a different playbook, he will suddenly start to get the logs.
He might have already configured it with logs_enricher, in which case he'll get the logs twice, or configured it without the logs_enricher and now will start to get logs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@arikalon1 arikalon1 left a comment

Choose a reason for hiding this comment

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

nice work!

@arikalon1 arikalon1 merged commit 8998212 into master Dec 1, 2023
14 checks passed
@arikalon1 arikalon1 deleted the feature/main-1087/oom-kill-data-collection-improvements branch December 1, 2023 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants