Skip to content
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

Closed
barmstrong opened this issue Mar 31, 2014 · 10 comments
Closed

Viewing historical queue depth #1626

barmstrong opened this issue Mar 31, 2014 · 10 comments
Labels

Comments

@barmstrong
Copy link

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.

@mperham
Copy link
Collaborator

mperham commented Mar 31, 2014

We track the number of jobs processed in Librato Metrics. This graph uses Sidekiq Pro's statsd integration to push the numbers to Librato:

screen shot 2014-03-31 at 1 58 23 pm

You could do something similar for queue depth or latency.

@seuros
Copy link
Collaborator

seuros commented Mar 31, 2014

You could use a service like @newrelic or liberato to monitor your sidekiq workers .

@barmstrong
Copy link
Author

Thanks for the info! This is tracking the number of jobs processed, but is it tracking queue depth?

@mperham
Copy link
Collaborator

mperham commented Apr 1, 2014

@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 mperham added the pro label Apr 18, 2014
@Notalifeform
Copy link

@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?

@mperham
Copy link
Collaborator

mperham commented May 5, 2015

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.

@Notalifeform
Copy link

great to hear. I'm looking forward to that feature.

@davydovanton
Copy link
Contributor

@Notalifeform, hello!
You can find sidekiq history project in this repository davydovanton/sidekiq-history (sorry this is GSoC project because that I don't accept any PR).
And if you have any proposals or ideas - I will happy if you share them 😃

@skwp
Copy link

skwp commented Oct 16, 2015

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?

@mperham
Copy link
Collaborator

mperham commented Dec 15, 2015

Sidekiq Enterprise will get this feature in 2016. See issue linked above.

@mperham mperham closed this as completed Dec 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants