Skip to content

Ent Historical Metrics

Mike Perham edited this page Jan 11, 2016 · 30 revisions

This feature is still under development

Sidekiq Enterprise has the ability to send queue processing metrics to Statsd for dashboards and historical reporting.

Configuration

In your initializer, add this:

# gem install statsd-ruby
statsd = Statsd.new('127.0.0.1', 8125)
statsd.namespace = 'myapp'

Sidekiq.configure_server do |config|
  # statsd must be something which quacks like a statsd-ruby instance
  # history is captured every 30 seconds by default
  config.save_history(statsd, 30)
end

Metrics

Sidekiq Enterprise sends the following metrics:

  • sidekiq.enqueued - Total Size of all known queues
  • sidekiq.retries - Total Retries Size
  • sidekiq.scheduled - Total Scheduled Size
  • sidekiq.busy - Total Busy Size
  • sidekiq.enqueued.#{queue} - Current Size of queue

The statsd namespace will be prepended to each metric, e.g. "myapp.sidekiq.enqueued".

Clone this wiki locally