-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Metrics
mperham edited this page Oct 1, 2012
·
22 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 = Statsd.new(statsd_host, 8125)
Sidekiq.configure_server do |config|
config.server_middleware do |chain|
require 'sidekiq/middleware/server/statsd'
chain.add Sidekiq::Middleware::Server::Statsd, :client => METRICS
end
endwhere METRICS is your statsd-ruby client instance.