Skip to content
railsengines.com

Rails Health Checks

Rails health check endpoints gem

No ratings yet
Gem
rails_health_checks
Repository
eclectic-coding/rails_health_checks
License
MIT
Stars
14
Added
August 08, 2026

About

Rails health check endpoints gem

A Rails engine that adds production-grade health check endpoints to any Rails app. Goes well beyond the built-in /up endpoint with 11 built-in checks, parallel execution, structured JSON responses, Prometheus metrics, and a clean configuration DSL.

What you get

  • Parallel check execution via Concurrent::Future — response time bounded by the slowest check, not the sum
  • Result caching (config.cache_duration) to absorb high-frequency probe traffic
  • Prometheus text exposition at GET /health/metrics (always HTTP 200)
  • Check groups (config.group) expose subsets at /health/:group
  • Per-environment toggling, boot-time validation, and bearer token / IP / custom auth
  • rails generate rails_health_checks:initializer scaffolds a fully-commented config file
  • Drop-in replacement for OkComputer — see MIGRATING_FROM_OKCOMPUTER.md

Mounting it

ruby
# Gemfile
gem "rails_health_checks"

# config/routes.rb
mount RailsHealthChecks::Engine, at: "/rails-health-checks"

Details

14 stars on GitHub · MIT licensed · maintained by eclectic-coding. Source: https://github.com/eclectic-coding/rails_health_checks

Discussion (0)

Sign in to join the discussion.

No comments yet.