mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-18 07:49:01 +08:00
add
This commit is contained in:
@@ -31,3 +31,9 @@ func PromeInc(counter prometheus.Counter) {
|
|||||||
counter.Inc()
|
counter.Inc()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func PromeAdd(counter prometheus.Counter, add int) {
|
||||||
|
if config.Config.Prometheus.Enable {
|
||||||
|
counter.Add(float64(add))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user