Repository is archived
Implements recording Sidekiq stats to New Relic metrics.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

IMPORTANT !!! newrelic-sidekiq-metrics is discontinued and is not maintained anymore

newrelic-sidekiq-metrics

Implements recording Sidekiq stats to New Relic metrics by leveraging sidekiq middlewares.

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.