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

grpc: add prometheus server and client prometheus metrics #642

Merged
merged 7 commits into from
Sep 12, 2023
Prev Previous commit
Next Next commit
bump zoekt to version in #642
this will be changed to point to zoekt@main once #642 is merged.
  • Loading branch information
ggilmore committed Sep 6, 2023
commit a74bcd9083630007f69c662c435370b22fea15c9
2 changes: 1 addition & 1 deletion cmd/zoekt-webserver/grpc/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 74,7 @@ func (s *Server) List(ctx context.Context, req *proto.ListRequest) (*proto.ListR
// gRPCChunkSender is a zoekt.Sender that sends small chunks of FileMatches to the provided gRPC stream.
func gRPCChunkSender(ss proto.WebserverService_StreamSearchServer) zoekt.Sender {
f := func(r *zoekt.SearchResult) {
result := r.ToProto()
result := r.ToStreamProto().GetResponseChunk()

if len(result.GetFiles()) == 0 { // stats-only result, send it immediately
_ = ss.Send(&proto.StreamSearchResponse{
Expand Down