Rapporteur Load Check
Load checking for Rapporteur.
Installation
Add this line to your application's Gemfile:
gem 'rapporteur-load_check'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rapporteur-load_check
Usage
To add the check to your application, define the check in your environment or application configuration files or initializers, such as:
# config/initializers/production.rb
Rapporteur.add_check(Rapporteur::Checks::LoadCheck)
By default, a load value of 8 or greater triggers a failure. You can adjust this value by passing the threshold to LoadCheck.new, like so:
Rapporteur.add_check(Rapporteur::Checks::LoadCheck.new(4))
The above would cause the checker to fail if load goes above 4.0.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request