pull/2696/head
truongpx-Mac 2 years ago
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…
Cancel
Save