runtime: add implementation of GetMetrics

add implementation of `GetMetrics` for runtime.

Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
bin liu
2020-06-10 16:17:36 +08:00
parent 0c4c69de17
commit 186fed2a11
381 changed files with 58555 additions and 13768 deletions

View File

@@ -254,6 +254,10 @@ func (p *gRPCProxy) GetOOMEvent(ctx context.Context, req *pb.GetOOMEventRequest)
return &pb.OOMEvent{}, nil
}
func (p *gRPCProxy) GetMetrics(ctx context.Context, req *pb.GetMetricsRequest) (*pb.Metrics, error) {
return &pb.Metrics{}, nil
}
func gRPCRegister(s *ttrpc.Server, srv interface{}) {
switch g := srv.(type) {
case *gRPCProxy: