From 0bfe130991e2f2c623fbda0dae54c0c568f670a8 Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Thu, 11 Apr 2024 16:13:17 +0800 Subject: [PATCH] fix: fix metric about ProxySearchVectors (#32152) issue :https://github.com/milvus-io/milvus/issues/25639 Signed-off-by: zhenshan.cao --- internal/proxy/impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/proxy/impl.go b/internal/proxy/impl.go index aaaee8ffc6..0c16197a65 100644 --- a/internal/proxy/impl.go +++ b/internal/proxy/impl.go @@ -3067,7 +3067,7 @@ func (node *Proxy) hybridSearch(ctx context.Context, request *milvuspb.HybridSea metrics.ProxySearchVectors. WithLabelValues(nodeID, dbName, collectionName). - Add(float64(len(request.GetRequests()))) + Add(float64(len(request.GetRequests()) * int(qt.SearchRequest.GetNq()))) searchDur := tr.ElapseSpan().Milliseconds() metrics.ProxySQLatency.WithLabelValues(