mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-29 07:12:14 +08:00
update
This commit is contained in:
parent
537e8ed6c2
commit
37405b7366
@ -395,7 +395,7 @@ callback:
|
||||
# The number of Prometheus ports per service needs to correspond to rpcPort
|
||||
# The number of ports needs to be consistent with msg_transfer_service_num in script/path_info.sh
|
||||
prometheus:
|
||||
enable: false
|
||||
enable: true
|
||||
userPrometheusPort: [ 20110 ]
|
||||
friendPrometheusPort: [ 20120 ]
|
||||
messagePrometheusPort: [ 20130 ]
|
||||
|
||||
@ -104,6 +104,7 @@ func Start(
|
||||
}
|
||||
go func() {
|
||||
if config.Config.Prometheus.Enable && prometheusPort != 0 {
|
||||
prome.Enable = true
|
||||
if err := prome.StartPrometheusSrv(prometheusPort); err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user