/ use-cases / monitor-fly-app
Fly.io health checks: monitor your app across regions
Fly.io health checks decide routing per region, not whether your app is up everywhere. Here is what to monitor across regions and how to set it up.
Updated · Published

A Fly.io health check requests your app's public URL from outside Fly's network, on a schedule, the way a visitor reaches it. Fettle is uptime monitoring for developers: it requests your app's domain from up to three of its four regions (US East, US West, Europe and Asia), checks its certificate, and opens an incident when the app stops answering.
Why Fly's own signals are not uptime monitoring
Fly.io gives an app real, load-bearing health checks that decide whether the Fly Proxy sends
traffic to a given Machine. Configure an HTTP or TCP check in
fly.toml and Fly polls it continuously, not only during a deploy. If a Machine fails its check,
Fly's own health checks documentation is direct about the consequence: it "will be marked as unhealthy by the
proxy, and it won't be routed to until its checks start passing." That is genuinely useful
routing logic.
It is also, by Fly's own account, not a monitoring or remediation system. The same documentation states plainly that "your Machines won't automatically restart or stop due to failing their health checks, this needs to be done manually." A health check changes routing, not machine state. And it changes routing for one Machine in one region, not for your app as a whole.
That per-Machine, per-region scope is the part worth sitting with. Fly apps run as Machines placed in specific regions. Fly's regions documentation explains that Anycast networking lets "your users in Tokyo, São Paulo, or Amsterdam connect to the nearest server" automatically. That is excellent for latency and mostly invisible when it works. But a health check passing in one region says nothing about whether the deploy is healthy in another. A bad release, a misconfigured secret, or a dependency outage in one region can leave Anycast quietly routing some users to a working Machine and others to a broken one. Nothing in Fly's own dashboard says "your app is down for part of your traffic."
Fly Machines can also autostop when idle and autostart on the next request, a feature aimed at cost, not availability. Fly's docs describe a "stop loop" that runs periodically per region and an autostart path that "should automatically start Machines based on requests and capacity" when enabled. That is deliberate, documented behavior. It is also a second reason to read a from-outside check carefully. A cold start after idle time is not the same event as an outage, even though both can show up as a slow or failed first response if you are not expecting it.
None of this is a shortfall in Fly's tooling. Health checks that gate routing per Machine, and an autostop/autostart system that saves cost on idle capacity, both do exactly their documented job. Neither one is an independent, scheduled check of whether your app answers from the outside, from more than one place, whichever Machine happens to be up.
What is worth monitoring
For an app running on Fly, the checks worth adding are the ones Fly's own routing and health system was never built to answer:
- The app's public hostname over HTTPS, checked from more than one region. Anycast can route different visitors to different Machines, so a single check from a single vantage point can stay green while a specific region's path is broken.
- Any custom domain pointed at the app, since its DNS and registrar sit outside Fly and can drift
with nothing surfacing in
fly statusor the Fly dashboard. - The TLS certificate on that custom domain, checked on its own. An HTTP check that confirms the certificate is valid now will not warn you before it is close to expiring, and that is a separate concern from whether the app answers right now.
- A response-time baseline, so a slow first response after a Machine autostarts from idle reads as an expected cold start rather than a genuine timeout from a stuck process.
- Any worker process running as its own Fly Machine without a public HTTP listener, such as a queue consumer or a scheduled job. An HTTP check cannot reach it from any region.
On a single-region host, checking from several regions can be optional polish. Here it is the direct counterpart to how Fly itself is built. From the outside, a Fly deploy that spans regions is only as observable as the vantage points asking it "are you answering" from each of those regions independently.
How to set it up in Fettle
- Create an API key with write scope under API keys in the dashboard sidebar, or add the monitor straight from the dashboard.
- Add an HTTP monitor against the app's public hostname, and pick check regions that match where
the Fly app actually runs Machines. A Machine in
sydneeds a check that reaches it on a realistic path, not only a check from wherever your team happens to sit. - Set the monitor's timeout with autostop/autostart in mind. If the app stops when idle, give the first request after a gap a few extra seconds before calling it a failure; 30 is a reasonable starting point. That keeps a routine cold start distinct from a real timeout.
- The HTTP monitor from step 2 looks like this from the API:
curl -s -X POST https://api.fettle.sh/v1/monitors \
-H "Authorization: Bearer fettle_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Production (Fly.io)",
"type": "HTTP",
"target": "https://my-app.fly.dev",
"interval_seconds": 60,
"timeout_seconds": 30,
"regions": ["eu-central", "us-east", "ap-southeast"]
}'
interval_seconds has a plan floor and regions a plan cap. Both are separate from anything
Fly's own health checks configure. The two systems don't talk to each other, which is exactly the
point of running one from outside. Try a check against your own hostname from more than one
region, without creating anything, on the multi-region check tool
first. The full walkthrough for creating a key and reading results back is in the
quickstart guide.
Prefer an MCP-aware client to raw curl? Point it at the same account with this one-liner:
{
"mcpServers": {
"fettle": {
"url": "https://api.fettle.sh/mcp",
"headers": { "Authorization": "Bearer fettle_your_key_here" }
}
}
}
Which alerts to wire
A Machine that fails its own Fly health check simply stops receiving traffic in that region. Fly's docs are explicit that nothing restarts or stops it automatically. If the failure is app-level rather than transient, it can sit unrouted with no alert fired anywhere on Fly's side. Fettle sends alerts by email and Telegram on every plan, and to Slack, Discord or a webhook from Plus. Wire whichever channel your team already gets paged on for production incidents. The value of this monitor is catching exactly the failures Fly's own health checks are not built to surface.
Two habits keep it from becoming noise. First, use a maintenance window (Pro and up) around planned deploys or region changes. The brief gap while new Machines come up then does not fire a false alert on a monitor watching the same hostname from outside. Second, if the app is public-facing, put a status page in front of it. A Fly outage in one region can otherwise stay invisible to users elsewhere until they hit it themselves. A status page gives them somewhere to check instead.
How many monitors, regions and status pages come with each plan is on the pricing page.
Questions
- Does Fly's health check already tell me if my app is down?
- It tells the Fly Proxy whether to route traffic to one Machine in one region. Fly's own docs say a failing check stops routing to that Machine but does not restart or stop it, and it says nothing about whether users elsewhere can reach the app at all.
- Will an external check confuse a cold start with an outage?
- Not if you give it a sane timeout. Fly's autostop/autostart docs describe starting a stopped Machine as slower than starting a suspended one. A check with a few seconds of tolerance treats a normal cold start as a cold start, not as an outage.
- Should I check every Fly region my app runs in?
- Only the ones that matter to your users. Fettle checks from US East, US West, Europe and Asia (us-east, us-west, eu-central and ap-southeast). Matching a subset to where your Fly Machines actually run tells you whether a specific region's routing path is healthy, not just whether Anycast found any working Machine.
Start monitoring in a minute
The free plan checks up to 20 monitors as often as every 3 minutes from 1 region, and emails you when one breaks. See pricing for the paid intervals, or follow the quickstart to do it from the API.