Skip to content

elitau/rack-skylight-endpoint

Repository files navigation

Build Status

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

  1. Fork it ( https://github.com/elitau/rack-skylight-endpoint/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Custom skylight endpoints for specific paths

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published