Skip to content

Commit

Permalink
enhance: [24]Track complex delete rates (#36958)
Browse files Browse the repository at this point in the history
See also: #36953
pr: #36957

Signed-off-by: yangxuan <[email protected]>
  • Loading branch information
XuanYang-cn authored Oct 22, 2024
1 parent 80db377 commit 6b68ec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/proxy/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -2695,7 +2695,6 @@ func (node *Proxy) Delete(ctx context.Context, request *milvuspb.DeleteRequest)

dbName := request.DbName
nodeID := paramtable.GetStringNodeID()
metrics.ProxyDeleteVectors.WithLabelValues(nodeID, dbName).Add(float64(successCnt))

username := GetCurUserFromContextOrDefault(ctx)
collectionName := request.CollectionName
Expand Down
2 changes: 2 additions & 0 deletions internal/proxy/task_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/milvus-io/milvus/internal/util/exprutil"
"github.com/milvus-io/milvus/pkg/common"
"github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/metrics"
"github.com/milvus-io/milvus/pkg/mq/msgstream"
"github.com/milvus-io/milvus/pkg/util/commonpbutil"
"github.com/milvus-io/milvus/pkg/util/merr"
Expand Down Expand Up @@ -185,6 +186,7 @@ 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))
return nil
}

Expand Down

0 comments on commit 6b68ec5

Please sign in to comment.