Purple-Devs / health_check

Simple health check of Rails app for use with uptime checking sites like newrelic and pingdom
MIT License
476 stars 125 forks source link

Multiple database support #100

Closed nikolai-b closed 1 year ago

nikolai-b commented 4 years ago

Related to #94 Rails 6 has multiple database connections.

Do you plan on adding support for checking the health of multiple databases, very crudely:

ActiveRecord::Base.configurations.configs_for.select { |con| con.env_name == Rails.env }

?

shlima commented 4 years ago

@nikolai-b you can check an alternative

ianheggie commented 3 years ago

At this point, No, I am not intending to code for multiple database support, but am happy to accept a PR if you want to code it.

If you send me a PR, or a custom health check, I can look at including it.