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

hubble: Add a flag to write Hubble events to a rotated file #15557

Merged
merged 1 commit into from
Apr 8, 2021
Merged

hubble: Add a flag to write Hubble events to a rotated file #15557

merged 1 commit into from
Apr 8, 2021

Conversation

michi-covalent
Copy link
Contributor

@michi-covalent michi-covalent commented Apr 5, 2021

Add a flag to write Hubble events from OnDecodeEvent() to a rotated
file. It could be useful for troubleshooting to have access to recent
events beyond what's kept in memory. Use it with caution as it can
add significant overhead on busy nodes.

Signed-off-by: Michi Mutsuzaki michi@isovalent.com

@michi-covalent michi-covalent added the release-note/minor This PR changes functionality that users may find relevant to operating Cilium. label Apr 5, 2021
@michi-covalent michi-covalent requested a review from a team April 5, 2021 17:40
@michi-covalent michi-covalent requested a review from a team as a code owner April 5, 2021 17:40
@michi-covalent michi-covalent requested a review from a team April 5, 2021 17:40
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Apr 5, 2021
pkg/hubble/exporter/exporter.go Outdated Show resolved Hide resolved
pkg/hubble/exporter/exporter.go Outdated Show resolved Hide resolved
@michi-covalent
Copy link
Contributor Author

fixing test failures...

@michi-covalent michi-covalent marked this pull request as draft April 5, 2021 20:53
@michi-covalent michi-covalent marked this pull request as ready for review April 5, 2021 22:21
@michi-covalent
Copy link
Contributor Author

test-me-please

@michi-covalent
Copy link
Contributor Author

test-gke

@michi-covalent
Copy link
Contributor Author

test-1.16-netnext

Copy link
Member

@gandro gandro 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! One small comment

pkg/hubble/observer/local_observer.go Show resolved Hide resolved
Copy link
Member

@rolinh rolinh 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! Some non-blocking suggestions below.

daemon/cmd/hubble.go Outdated Show resolved Hide resolved
pkg/hubble/exporter/exporteroption/option.go Outdated Show resolved Hide resolved
pkg/hubble/exporter/exporter_test.go Outdated Show resolved Hide resolved
pkg/hubble/exporter/exporter_test.go Show resolved Hide resolved
Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

🚀 LGTM apart from one small nit and what Sebastian and Robin already pointed out.

pkg/hubble/exporter/exporter.go Outdated Show resolved Hide resolved
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 6, 2021
@tklauser tklauser removed their assignment Apr 6, 2021
@pchaigno pchaigno removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 6, 2021
@michi-covalent
Copy link
Contributor Author

thank you all for your review. addressed all the comments except for #15557 (comment) will add more test cases tomorrow 👍

@michi-covalent
Copy link
Contributor Author

added some more test cases

Copy link
Member

@rolinh rolinh left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@michi-covalent
Copy link
Contributor Author

test-me-please

Add a flag to write Hubble events from OnDecodeEvent() to a rotated
file. It could be useful for troubleshooting to have access to recent
events beyond what's kept in memory. Use it with caution as it can
add significant overhead on busy nodes.

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
@michi-covalent
Copy link
Contributor Author

test-me-please

@pchaigno
Copy link
Member

pchaigno commented Apr 8, 2021

I checked that all team review requests are covered. Tests are passing. Merging.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 8, 2021
@pchaigno pchaigno merged commit 7226197 into cilium:master Apr 8, 2021
1.10.0 automation moved this from In progress to Done Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants