lib/sidekiq_prometheus.rb in sidekiq_prometheus-1.8.1 vs lib/sidekiq_prometheus.rb in sidekiq_prometheus-1.8.2

- old
+ new

@@ -193,11 +193,11 @@ config.server_middleware do |chain| chain.add SidekiqPrometheus::JobMetrics end if periodic_metrics_enabled? - config.on(:startup) { SidekiqPrometheus::PeriodicMetrics.reporter.start } - config.on(:shutdown) { SidekiqPrometheus::PeriodicMetrics.reporter.stop } + config.on(:startup) { SidekiqPrometheus::PeriodicMetrics.reporter(config).start } + config.on(:shutdown) { SidekiqPrometheus::PeriodicMetrics.reporter(config).stop } end if metrics_server_enabled? config.on(:startup) { SidekiqPrometheus.metrics_server } config.on(:shutdown) { SidekiqPrometheus.metrics_server.kill }