It’s always watching the rails.
Railfan is monitoring for Rails apps deployed with Kamal. It follows every request, error, log line and server, and tells you when one of them needs a look.
In closed beta testing. Accounts are by invitation only for now.
Sign inJust passed
Sample trafficA demonstration with made-up traffic: trains pass along a four-track railway, stopping at its signals when the line ahead is occupied. A passenger train is a request and a freight train a background job; its carriages are the queries, views and calls to other services it made, and the longer one took, the more carriages it fills. Each is added to this list as it passes, the way Railfan lists a request: its name, how it came in, its status, how long it took, and anything Railfan would flag on it, such as an N+1 query or an error.
Every request, carriage by carriage
Railfan traces each request and background job from start to finish. Think of a request as an intercity express: the controller action is the cab at the front, and behind it comes a carriage for every query, view and call to another service. The longer one took, the more carriages it fills. A background job is a freight train, loaded the same way.
Lay the carriages out and you can see where the time went. Here, 3 of the 6 carriages are one call to another service: 148 of 228 ms.
What else it watches
- Errors
- Grouped by cause, with the backtrace and the request that raised it. You get an email when one is new, or comes back after you resolved it.
- Queries
- The slowest queries across the app, and N+1s flagged in the requests where they happen.
- Logs
- Your app’s log lines and every container’s, searchable in one place.
- Servers
- CPU, memory, load and disk for each host, and every container running on it, sampled every minute.
- Deploys
- Each Kamal deploy is marked on the performance charts, so you can see what a release did to response times.
- Alerts
- A slow endpoint, a rising error rate, a disk filling up or a host gone quiet: an email when it starts and another when it clears.
In closed beta testing
Railfan isn’t open to everyone yet. For now, accounts are by invitation only.
Sign in