From 49d57f46ae82b15f7fc7771167dc3976caf2d06c Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Mon, 19 Sep 2022 11:10:37 +0800 Subject: [PATCH] prometheus for statistics --- pkg/common/db/batch_insert_chat.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/common/db/batch_insert_chat.go b/pkg/common/db/batch_insert_chat.go index 020d9c1d9..c9174ad4d 100644 --- a/pkg/common/db/batch_insert_chat.go +++ b/pkg/common/db/batch_insert_chat.go @@ -92,6 +92,8 @@ func (d *DataBases) BatchInsertChat2DB(userID string, msgList []*pbMsg.MsgDataTo log.Error(operationID, "FindOneAndUpdate failed ", err.Error(), filter) return utils.Wrap(err, "") } + } else { + promePkg.PromeInc(promePkg.MsgInsertMongoSuccessCounter) } } if seqUidNext != "" {