mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
[skip ci] Fix golint for GetMetrics (#11596)
Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
parent
512526c661
commit
98ad823666
@ -572,8 +572,8 @@ func (node *QueryNode) isHealthy() bool {
|
|||||||
return code == internalpb.StateCode_Healthy
|
return code == internalpb.StateCode_Healthy
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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 ...
|
// GetMetrics return system infos of the query node, such as total memory, memory uasge, cpu usage ...
|
||||||
|
// TODO(dragondriver): cache the Metrics and set a retention to the cache
|
||||||
func (node *QueryNode) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error) {
|
func (node *QueryNode) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error) {
|
||||||
log.Debug("QueryNode.GetMetrics",
|
log.Debug("QueryNode.GetMetrics",
|
||||||
zap.Int64("node_id", Params.QueryNodeID),
|
zap.Int64("node_id", Params.QueryNodeID),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user