mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
[skip e2e]Format log (#13579)
Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
This commit is contained in:
parent
461130e933
commit
037b9b0d4e
@ -573,12 +573,12 @@ func (i *IndexCoord) GetIndexFilePaths(ctx context.Context, req *indexpb.GetInde
|
||||
// GetMetrics gets the metrics info of IndexCoord.
|
||||
func (i *IndexCoord) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error) {
|
||||
log.Debug("IndexCoord.GetMetrics",
|
||||
zap.Int64("node_id", i.session.ServerID),
|
||||
zap.Int64("node id", i.session.ServerID),
|
||||
zap.String("req", req.Request))
|
||||
|
||||
if !i.isHealthy() {
|
||||
log.Warn("IndexCoord.GetMetrics failed",
|
||||
zap.Int64("node_id", i.session.ServerID),
|
||||
zap.Int64("node id", i.session.ServerID),
|
||||
zap.String("req", req.Request),
|
||||
zap.Error(errIndexCoordIsUnhealthy(i.session.ServerID)))
|
||||
|
||||
@ -594,7 +594,7 @@ func (i *IndexCoord) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsReq
|
||||
metricType, err := metricsinfo.ParseMetricType(req.Request)
|
||||
if err != nil {
|
||||
log.Error("IndexCoord.GetMetrics failed to parse metric type",
|
||||
zap.Int64("node_id", i.session.ServerID),
|
||||
zap.Int64("node id", i.session.ServerID),
|
||||
zap.String("req", req.Request),
|
||||
zap.Error(err))
|
||||
|
||||
@ -608,7 +608,7 @@ func (i *IndexCoord) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsReq
|
||||
}
|
||||
|
||||
log.Debug("IndexCoord.GetMetrics",
|
||||
zap.String("metric_type", metricType))
|
||||
zap.String("metric type", metricType))
|
||||
|
||||
if metricType == metricsinfo.SystemInfoMetrics {
|
||||
ret, err := i.metricsCacheManager.GetSystemInfoMetrics()
|
||||
@ -621,10 +621,10 @@ func (i *IndexCoord) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsReq
|
||||
metrics, err := getSystemInfoMetrics(ctx, req, i)
|
||||
|
||||
log.Debug("IndexCoord.GetMetrics",
|
||||
zap.Int64("node_id", i.session.ServerID),
|
||||
zap.Int64("node id", i.session.ServerID),
|
||||
zap.String("req", req.Request),
|
||||
zap.String("metric_type", metricType),
|
||||
zap.Any("metrics", metrics), // TODO(dragondriver): necessary? may be very large
|
||||
zap.String("metric type", metricType),
|
||||
zap.String("metrics", metrics.Response), // TODO(dragondriver): necessary? may be very large
|
||||
zap.Error(err))
|
||||
|
||||
i.metricsCacheManager.UpdateSystemInfoMetrics(metrics)
|
||||
@ -633,9 +633,9 @@ func (i *IndexCoord) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsReq
|
||||
}
|
||||
|
||||
log.Debug("IndexCoord.GetMetrics failed, request metric type is not implemented yet",
|
||||
zap.Int64("node_id", i.session.ServerID),
|
||||
zap.Int64("node id", i.session.ServerID),
|
||||
zap.String("req", req.Request),
|
||||
zap.String("metric_type", metricType))
|
||||
zap.String("metric type", metricType))
|
||||
|
||||
return &milvuspb.GetMetricsResponse{
|
||||
Status: &commonpb.Status{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user