Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

RenoFi/newrelic-sidekiq-metrics

Repository files navigation

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.

About

Implements recording Sidekiq stats (like queue or retry size) to New Relic metrics

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published