-
Notifications
You must be signed in to change notification settings - Fork 24
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
NETOBSERV-1471 add gRPC write stage #621
Conversation
Skipping CI for Draft Pull Request. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #621 +/- ##
==========================================
+ Coverage 66.97% 67.07% +0.09%
==========================================
Files 104 110 +6
Lines 7446 7674 +228
==========================================
+ Hits 4987 5147 +160
- Misses 2162 2214 +52
- Partials 297 313 +16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -0,0 +1,77 @@ | |||
package grpc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this grpc server is only used for test, so it could be moved under the test package? Or is it meant to be imported from other projects?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed I'm reusing this into CLI:
https://github.com/netobserv/network-observability-cli/blob/c7615024c987813d3368921f99c598edafd4feb8/cmd/flow-capture.go#L89-L94
We do the same in FLP from eBPF agent gRPC definition:
flowlogs-pipeline/pkg/pipeline/ingest/ingest_grpc.go
Lines 48 to 49 in df307e0
collector, err := grpc.StartCollector(netObserv.Port, flowPackets, | |
grpc.WithGRPCServerOptions(grpc2.UnaryInterceptor(instrumentGRPC(metrics)))) |
Thanks @jpinsonneau |
I'm merging this since only CLI will us it for now; no impact on existing features |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
This PR adds gRPC write stage to FLP.
The alternative tcp PR is also available
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.