From b7644c0c038eff2e1ea44cc61b0de1f4c8dd1742 Mon Sep 17 00:00:00 2001 From: xige-16 Date: Fri, 5 Nov 2021 22:01:03 +0800 Subject: [PATCH] [skip ci] Add comments for GetMetrics (#11347) Signed-off-by: xige-16 --- internal/querynode/impl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/querynode/impl.go b/internal/querynode/impl.go index fffd8a5033..071a513118 100644 --- a/internal/querynode/impl.go +++ b/internal/querynode/impl.go @@ -529,6 +529,7 @@ func (node *QueryNode) isHealthy() bool { } // TODO(dragondriver): cache the Metrics and set a retention to the cache +// GetMetrics return system infos of the query node, such as total memory, memory uasge, cpu usage ... func (node *QueryNode) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error) { log.Debug("QueryNode.GetMetrics", zap.Int64("node_id", Params.QueryNodeID),