Mike Perham edited this page Nov 28, 2013 · 2 revisions

This feature is only available in Sidekiq Pro

Sidekiq will send runtime metrics to Statsd for distribution to Graphite, Librato Metrics, etc. Just add it to the server middleware like so:

METRICS =, 8125)

Sidekiq.configure_server do |config|
  config.server_middleware do |chain|
    require 'sidekiq/middleware/server/statsd'
    chain.add Sidekiq::Middleware::Server::Statsd, :client => METRICS

where METRICS is your statsd-ruby client instance.


Sidekiq Pro will send the following metrics for a worker named Foo::BarWorker:

jobs.Foo.BarWorker.count => counter
jobs.Foo.BarWorker.success => counter
jobs.Foo.BarWorker.failure => counter
jobs.Foo.BarWorker.perform => gauge (time)
jobs.count => counter
jobs.success => counter
jobs.failure => counter

i.e. count will always be incremented. success or failure will be incremented based on the outcome. perform tracks the amount of time spent in the worker.