Gem Version Build Status

newrelic-sidekiq-metrics

Implements recording Sidekiq stats to New Relic metrics.

Installation

Add this line to your application's Gemfile:

gem 'newrelic-sidekiq-metrics'

Usage

Available metrics you can record are:

----------------------------------------------------
| Sidekiq stat name |    NewRelic metric name      |
----------------------------------------------------
| processed         | Custom/Sidekiq/ProcessedSize |
| failed            | Custom/Sidekiq/FailedSize    |
| scheduled_size    | Custom/Sidekiq/ScheduledSize |
| retry_size        | Custom/Sidekiq/RetrySize     |
| dead_size         | Custom/Sidekiq/DeadSize      |
| enqueued          | Custom/Sidekiq/EnqueuedSize  |
| processes_size    | Custom/Sidekiq/ProcessesSize |
| workers_size      | Custom/Sidekiq/WorkersSize   |
----------------------------------------------------

By default only enqueued and retry_size are recorded.

You can enable more with:

NewrelicSidekiqMetrics.use(:enqueued, :retry_size, :dead_size)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/RenoFi/newrelic-sidekiq-metrics. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.