Change prometheus port for different parts of Prysm (#5504)

* Change prometheus flag from default 8080 and sort flags
* Merge branch 'master' of https://github.com/prysmaticlabs/prysm into change-prometheus-port
* Fix build
* Merge branch 'master' of https://github.com/prysmaticlabs/prysm into change-prometheus-port
* Merge branch 'master' into change-prometheus-port
This commit is contained in:
Ivan Martinez
2020-04-19 04:36:19 -04:00
committed by GitHub
parent f2d88ea920
commit dee3f02e2c
13 changed files with 85 additions and 68 deletions

View File

@@ -161,7 +161,7 @@ func (s *ValidatorClient) Close() {
func (s *ValidatorClient) registerPrometheusService(ctx *cli.Context) error {
service := prometheus.NewPrometheusService(
fmt.Sprintf(":%d", ctx.Int64(cmd.MonitoringPortFlag.Name)),
fmt.Sprintf(":%d", ctx.Int64(flags.MonitoringPortFlag.Name)),
s.services,
)
logrus.AddHook(prometheus.NewLogrusCollector())