Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Sensu Plugin to monitor latency of a particular sidekiq queue

Notifications You must be signed in to change notification settings

chartmogul/sensu-plugin-sidekiq-latency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Sensu Plugin to monitor latency of a particular sidekiq queue

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages