fix: used wrong label for query received_nq metrics (#37987)

issue: #37982

Signed-off-by: Reid Chan <reidchan@apache.org>
This commit is contained in:
Reid Chan 2024-12-30 11:10:52 +08:00 committed by GitHub
parent 445b93790e
commit dd81a13821
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3738,7 +3738,7 @@ func (node *Proxy) Query(ctx context.Context, request *milvuspb.QueryRequest) (*
SetCollectionName(request.GetCollectionName())
metrics.ProxyReceivedNQ.WithLabelValues(
strconv.FormatInt(paramtable.GetNodeID(), 10),
metrics.SearchLabel,
metrics.QueryLabel,
request.GetCollectionName(),
).Add(float64(1))