README.md in peak_flow_utils-0.1.17 vs README.md in peak_flow_utils-0.1.18

- old
+ new

@@ -56,9 +56,29 @@ If you want the job name and its arguments logged in parameters you can execute this service: ```ruby PeakFlowUtils::SidekiqParametersLogging.execute! ``` +### Sidekiq and Postgres pings + +Add this to `routes.rb`: +```ruby +Rails.application.routes.draw do + mount PeakFlowUtils::Engine => "/peakflow_utils" +``` + +Add these to .env variables: +``` +PEAKFLOW_PINGS_USERNAME=username +PEAKFLOW_PINGS_PASSWORD=secret-password +``` + +You can now add a HTTP ping on this path: +`/peakflow_utils/pings/sidekiq` + +And this for Postgres: +`/pings/postgres_connections` + ## Contributing Contribution directions go here. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).