enhance: Support collection name for ProxyDeleteVectors as well (#38247)

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

Signed-off-by: Reid Chan <reidchan@apache.org>
This commit is contained in:
Reid Chan 2024-12-06 15:00:40 +08:00 committed by GitHub
parent edabfa8fa6
commit e1aebe8fce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -188,7 +188,11 @@ func (dt *deleteTask) Execute(ctx context.Context) (err error) {
}
func (dt *deleteTask) PostExecute(ctx context.Context) error {
metrics.ProxyDeleteVectors.WithLabelValues(paramtable.GetStringNodeID(), dt.req.GetDbName()).Add(float64(dt.count))
metrics.ProxyDeleteVectors.WithLabelValues(
paramtable.GetStringNodeID(),
dt.req.GetDbName(),
dt.req.GetCollectionName(),
).Add(float64(dt.count))
return nil
}

View File

@ -66,7 +66,7 @@ var (
Subsystem: typeutil.ProxyRole,
Name: "delete_vectors_count",
Help: "counter of vectors successfully deleted",
}, []string{nodeIDLabelName, databaseLabelName})
}, []string{nodeIDLabelName, databaseLabelName, collectionName})
// ProxySQLatency record the latency of search successfully.
ProxySQLatency = prometheus.NewHistogramVec(