[#50] ir: Fix config property name for prometheus

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
feat/refactor_assemble
Anton Nikiforov 2023-03-10 19:47:10 +03:00 committed by Gitea
parent 365adb4ebd
commit 5890cd4d7d
1 changed files with 1 additions and 1 deletions

View File

@ -925,7 +925,7 @@ func New(ctx context.Context, log *logger.Logger, cfg *viper.Viper, errChan chan
queueSize: cfg.GetUint32("workers.subnet"),
})
if cfg.GetString("metrics.address") != "" {
if cfg.GetString("prometheus.address") != "" {
m := metrics.NewInnerRingMetrics()
server.metrics = &m
}