promethues

This commit is contained in:
wangchuxiao 2022-09-09 17:02:23 +08:00
parent ea38953b47
commit 189d5aed69

View File

@ -80,7 +80,7 @@ func (pc *PersistentConsumerHandler) handleChatWs2Mysql(cMsg *sarama.ConsumerMes
} }
msgInsertMysqlProcessed.Inc() msgInsertMysqlProcessed.Inc()
if config.Config.Prometheus.Enable { if config.Config.Prometheus.Enable {
log.NewDebug(msgFromMQ.OperationID, utils.GetSelfFuncName(), "inc msgInsertMysqlProcessed", msgInsertMysqlProcessed.Desc()) log.NewDebug(msgFromMQ.OperationID, utils.GetSelfFuncName(), "inc msgInsertMysqlProcessed")
msgInsertMysqlProcessed.Inc() msgInsertMysqlProcessed.Inc()
} }
} }