How to see the stats about workers in Sidekiq?

ruby-on-rails, sidekiq

Solution

Solved by Mike (creator of sidekiq) with the following commit:

https://github.com/mperham/sidekiq/commit/c606dd4fde8cdc795d2c750d211a74bf1b380217

Problem

We can get some information about sidekiq's status via its API. There's not an API method for workers. I want to know how many workers a certain class is running. For example I have a class named `FooStreamer.rb` and it's performed with `perform_async` method. I want to know how many workers it is running at the current time. Any ideas?

Original source