mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-16 02:27:01 +08:00
17 lines
295 B
Go
17 lines
295 B
Go
package prommetrics
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
)
|
|
|
|
var (
|
|
OnlineUserGauge = prometheus.NewGauge(prometheus.GaugeOpts{
|
|
Name: "online_user_num",
|
|
Help: "The number of online user num",
|
|
})
|
|
)
|
|
|
|
func RegistryMsgGateway() {
|
|
registry.MustRegister(OnlineUserGauge)
|
|
}
|