[skip ci] Add comment for GetMetrics (#9055)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2021-10-02 09:42:23 +08:00 committed by GitHub
parent e39f46cfb2
commit 170e76aee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -536,6 +536,7 @@ func (qc *QueryCoord) isHealthy() bool {
return code == internalpb.StateCode_Healthy return code == internalpb.StateCode_Healthy
} }
// GetMetrics returns all the queryCoord's metrics
func (qc *QueryCoord) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error) { func (qc *QueryCoord) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error) {
log.Debug("QueryCoord.GetMetrics", log.Debug("QueryCoord.GetMetrics",
zap.Int64("node_id", Params.QueryCoordID), zap.Int64("node_id", Params.QueryCoordID),