[#50] ir: Fix config property name for prometheus
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
365adb4ebd
commit
5890cd4d7d
1 changed files with 1 additions and 1 deletions
|
@ -925,7 +925,7 @@ func New(ctx context.Context, log *logger.Logger, cfg *viper.Viper, errChan chan
|
||||||
queueSize: cfg.GetUint32("workers.subnet"),
|
queueSize: cfg.GetUint32("workers.subnet"),
|
||||||
})
|
})
|
||||||
|
|
||||||
if cfg.GetString("metrics.address") != "" {
|
if cfg.GetString("prometheus.address") != "" {
|
||||||
m := metrics.NewInnerRingMetrics()
|
m := metrics.NewInnerRingMetrics()
|
||||||
server.metrics = &m
|
server.metrics = &m
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue