fix: fix metric about ProxySearchVectors (#32152)

issue :https://github.com/milvus-io/milvus/issues/25639

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
zhenshan.cao 2024-04-11 16:13:17 +08:00 committed by GitHub
parent 2c63f848bf
commit 0bfe130991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(