Skip to content

Add a Sidekiq view for job counts. Make it easy to find out how many jobs are scheduled by queue!

License

Notifications You must be signed in to change notification settings

michaelstephens/sidekiq-queue-stats

Repository files navigation

Sidekiq::QueueStats Build Status

Keeps track of Sidekiq job count and adds a tab to the Web UI to let you view totals.

Installation

Add this line to your application's Gemfile:

gem 'sidekiq-queue-stats'

Usage

Simply having the gem in your Gemfile is enough to get you started. Your job count will be visible via a Queue Stats tab in the Web UI.

Web UI

Configuration

Add this block to config/initializers/sidekiq.rb

Sidekiq::QueueStats.configure do |config|
  config.max_limit = 50000
end

Max Limit

Iterating through large queues can be resource intensive and take quite a lot of time. This option lets you set an integer to only show queue stats of queues under a pre defined threashold.

Dependencies

Depends on Sidekiq >= 2.16.0

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Released under the MIT License. See the LICENSE file for further details.

About

Add a Sidekiq view for job counts. Make it easy to find out how many jobs are scheduled by queue!

Resources

License

Stars

Watchers

Forks

Packages

No packages published