Low commit activity in last 3 years
No release in over a year
Send Sidekiq status into Instrumental after every job
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 10.0
~> 3.4
~> 0.79.0
~> 1.37.1
~> 0.11
~> 0.9.1

Runtime

>= 4.0, < 6.0
 Project Readme

Gem Version

Sidekiq::Instrumental

sidekiq-instrumental is a simple gem to record Sidekiq queue stats into Instrumental.

This gem is inspired by the librato-sidekiq gem.

Installation

Add this line to your application's Gemfile:

gem 'sidekiq-instrumental'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sidekiq-instrumental

Usage

After you configue Instrumental simply configure Sidekiq::Instrumental with the reference to your agent object.

I = Instrumental::Agent.new(
    ENV['INSTRUMENTAL_KEY'],
    enabled: ENV['INSTRUMENTAL_KEY'].present?
)
# now tell Sidekiq::Instrumental what agent connection to use
Sidekiq::Instrumental.configure do |config|
  config.instrumental_agent = I
end

Configuration

NOTE Make all configuration changes through the .configure block.

enabled: Boolean, true by default

instrumental_agent: the Instrumental::Agent instance to use to submit metrics

enabled: Boolean, true by default

whitelist_queues: Array, list of queue names that will be the only ones sent to Instrumental (optional)

blacklist_queues: Array, list of queue names that will not be sent to Instrumental (optional)

whitelist_classes: Array, list of worker classes that will be the only ones sent to Instrumental (optional)

blacklist_classes: Array, list of worker classes that will not be sent to Instrumental (optional)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/NetsoftHoldings/sidekiq-instrumental.

License

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