diff --git a/internal/proxy/task_delete.go b/internal/proxy/task_delete.go index 8ffdf84860942..e4addae3fcfb5 100644 --- a/internal/proxy/task_delete.go +++ b/internal/proxy/task_delete.go @@ -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 } diff --git a/pkg/metrics/proxy_metrics.go b/pkg/metrics/proxy_metrics.go index 40a6cc01d1b92..45a8a1ec2e260 100644 --- a/pkg/metrics/proxy_metrics.go +++ b/pkg/metrics/proxy_metrics.go @@ -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(