lib/sidekiq/prometheus/exporter.rb in sidekiq-prometheus-exporter-0.1.10 vs lib/sidekiq/prometheus/exporter.rb in sidekiq-prometheus-exporter-0.1.11

- old
+ new

@@ -13,9 +13,18 @@ MOUNT_PATH = '/metrics'.freeze HEADERS = {'Content-Type' => 'text/plain; version=0.0.4', 'Cache-Control' => 'no-cache'}.freeze EXPORTERS = Exporters.new class << self + def banner + exporters = + EXPORTERS.enabled + .map { |klass| " - #{klass.name.split('::').last.downcase}" } + .join("\n".freeze) + + "Enabled Sidekiq Prometheus exporters:\n#{exporters}" + end + def configure yield(EXPORTERS) end def registered(app)