Sha256: 00b3ab303df8824ca62ce50cccb5fb6d23b307cff7783baa5c12abea6d593457
Contents?: true
Size: 341 Bytes
Versions: 2
Compression:
Stored size: 341 Bytes
Contents
module Sidekiq::QueueMetrics module WebExtension def self.registered(app) view_path = File.join(File.expand_path("..", __FILE__), "views") app.get "/queue_metrics" do @queue_metrics = Sidekiq::QueueMetrics.fetch render(:erb, File.read(File.join(view_path, "queue_metrics.erb"))) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq_queue_metrics-1.0 | lib/sidekiq_queue_metrics/web_extension.rb |
sidekiq_queue_metrics-0.0.4 | lib/sidekiq_queue_metrics/web_extension.rb |