Skip to content

Commit

Permalink
add one metrics
Browse files Browse the repository at this point in the history
Signed-off-by: bufferflies <1045931706@qq.com>
  • Loading branch information
bufferflies committed Jul 11, 2022
1 parent 0c3303e commit c6f7726
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/grpc_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ func (s *GrpcServer) RegionHeartbeat(stream pdpb.PD_RegionHeartbeatServer) error

for {
request, err := server.Recv()
regionHeartbeatCounter.WithLabelValues("fake", "fake", "report", "pending").Inc()
if err == io.EOF {
return nil
}
Expand Down

0 comments on commit c6f7726

Please sign in to comment.