Rails

Your Rails app on Kamal, at a glance.

Request health works with nothing installed. Add the gem for migrations, Puma, queues, and Ruby versions.

With no changes to your app

Every request already passes through kamal-proxy. The observer reads its log and reports a summary each minute. Nothing goes in your image or your deploy config.

  • Requests per minute, 5xx error rate, and p95 response time
  • Before and after numbers on every deploy receipt
  • Server-error alerts that clear when the errors stop
  • Host, container, certificate, and HTTP checks

With the upstate-rails gem

The gem adds what a request log can’t see. Health stays on your server’s private network.

What the gem adds

gem "upstate-rails"
  • Pending migrations after a deploy
  • Puma capacity and database pool pressure
  • Queue depth and wait for Solid Queue, Sidekiq, or GoodJob
  • Solid Queue recurring jobs, ready to accept as check-ins
  • Postgres size and growth, connections, oldest transaction
  • Ruby security advisories and end-of-life Ruby or Rails versions
  • Slowest controller actions, on Pro

What never leaves your app

Request and response bodies, row data, parameters, headers, cookies, SQL, IP addresses, exception messages, job arguments, and environment variables. Upstate keeps counts, timings, and the names of actions and job classes.

See everything that leaves your server

Setup

Generate a token on the project’s App health page, then:

bundle add upstate-rails

# .kamal/secrets
UPSTATE_HEALTH_TOKEN=paste-the-token-here

# config/deploy.yml
env:
  secret:
    - UPSTATE_HEALTH_TOKEN

Deploy as usual. That’s it.

Keep your servers. Know when they need you.

Free watches 5 components on up to 3 servers. No card.