Rack::SkylightEndpoint
Rack middleware to set custom skylight.io endpoints for specific paths. I'm using it to ignore Rack based health check responses in skylight. It is based on teodor-pripoae's suggestion.
WARNING: Uses skylights private API.
Installation
Add this line to your application's Gemfile:
gem 'rack-skylight-endpoint'
And then execute:
$ bundle
Customization
use Rack::SkylightEndpoint, path: '/healthcheck', endpoint: 'healthcheck'
Add this to your skylight config:
ignored_endpoints:
- healthcheck
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run bin/console
for an interactive prompt that will allow you to experiment.
Contributing
- Fork it ( https://github.com/elitau/rack-skylight-endpoint/fork )
- 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 a new Pull Request