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

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
Anton Nikiforov 2023-03-10 19:47:10 +03:00 committed by Gitea
parent 365adb4ebd
commit 5890cd4d7d

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
}