-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Viewing historical queue depth #1626
Comments
You could use a service like @newrelic or liberato to monitor your sidekiq workers . |
Thanks for the info! This is tracking the number of jobs processed, but is it tracking queue depth? |
@barmstrong Right now tracking queue depth or latency would need to be done outside of Sidekiq since there's no good place to do it in the Sidekiq code. The Sidekiq::Queue#{size,latency} API exposes those numbers so it's easy to sample via a cron job and send those numbers to your favorite metrics service. |
@mperham Having the number of processed jobs per queue would also be very helpful - I don't think that is currently recorded/exposed; is it? |
It is not. I'm working with @davydovanton this summer to build a Sidekiq history gem which will track more metrics. These are more possible use cases for it. |
great to hear. I'm looking forward to that feature. |
@Notalifeform, hello! |
https://github.com/phstc/sidekiq-statsd/blob/master/lib/sidekiq/statsd/server_middleware.rb seems to implement latency reporting. Is this not something sidekiq could do natively? |
Sidekiq Enterprise will get this feature in 2016. See issue linked above. |
Is there a way to see what the queue depth was over time?
This would be very helpful for capacity planning, or to see when a cron job for example enqueued a large number of jobs and backed things up.
Sometimes we receive anecdotal bug reports that we believe are due to jobs being backed up, but by the time we view the queue things are cleared out.
The text was updated successfully, but these errors were encountered: