Repository is archived
No commit activity in last 3 years
No release in over 3 years
Sensu Plugin to alert on Sidekiq latency of a particular queue
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 10.0
>= 0

Runtime

 Project Readme

sensu-plugins-sidekiq-latency

This is a Sensu plugin that allows monitoring and alerting if the latency of a Sidekiq queue exceeds a threshold value. It talks directly to Redis, so that it doesn't need to authenticate to the Sidekiq web interface.

Installation

Or install it yourself as:

$ gem install sensu-plugins-sidekiq-latency

Functionality

check-sidekiq-latency.rb

Checks the latency for a particular sidekiq queue, and warns if it exceeds thresholds.

  • --url or -u - required URL of the Redis instance that Sidekiq is using.
  • --queue or -q - required name of the sidekiq queue to monitor.
  • --warn or -w - threshold (in seconds) for a warning to be issued.
  • --crit or -c - threshold (in seconds) for a critical alert to be sent.

Development

After checking out the repo, run bundle install --path vendor/bundle to install dependencies. Then, run bundle exec rake spec to run the "tests".

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in lib/version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/chartmogul/sensu-plugin-sidekiq-latency. 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.