实现基础的统计指标

This commit is contained in:
GoEdgeLab
2021-06-30 19:59:49 +08:00
parent 799aa13e37
commit d04e3e4f39
22 changed files with 429 additions and 117 deletions

View File

@@ -453,6 +453,11 @@ func (this *APINode) registerServices(server *grpc.Server) {
pb.RegisterNodeClusterMetricItemServiceServer(server, instance)
this.rest(instance)
}
{
instance := this.serviceInstance(&services.MetricStatService{}).(*services.MetricStatService)
pb.RegisterMetricStatServiceServer(server, instance)
this.rest(instance)
}
// TODO check service names
for serviceName := range server.GetServiceInfo() {