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.
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
Released under the MIT License. See the LICENSE file for further details.