Fly.io Machines: stopped machines, failing health checks and lost hosts as signals

Point a Pulso HTTP source at Fly.io's Machines API and turn machines that stopped, fail their health checks or sit on an unreachable host into signals, with a playbook for each.

Fly.io runs an app as Machines, and its Machines API lists them with their state, their health checks and the state of the host under them. Fly sends no webhook when one of them goes wrong, so Pulso asks instead: an HTTP source calls the API every five minutes, and each machine in the answer is a row the monitors filter.

Connect Fly.io#

Add Fly.io to Pulso to create an HTTP source called Fly.io Machines API: it asks for the app’s name and a token, and keeps them in a connection of the same name that calls https://api.machines.dev/v1/apps/<app> with the token in its Authorization header, kept encrypted. It then creates the monitors below that you pick, with their playbooks and a report. Once the account has a Fly.io connection, the form offers it under Connection, so a source added again calls through it without asking for the app or the token. A connection can also be made first, from New connection with Fly.io picked. To start from scratch instead, create a connection with that base URL and the header Authorization: <token>, and an HTTP data source on it.

  1. Create a read-only token for the organization that holds the app: fly tokens create readonly --org <org> --expiry 8760h. It changes nothing, but it can read every app in the organization, as Fly has no read-only token for a single app; Pulso only calls the app you name.
  2. Paste all it prints, starting with FlyV1, as the API token, and the app’s name as App name.
  3. Open a monitor and click Run under its request: the answer lists the app’s machines, one row each.

To watch another app, add the integration again with a new connection: each app gets its own connection, source and monitors, and the app’s name is in their signals’ titles and playbooks. The connection keeps the app’s name it was added with, so editing its base URL later doesn’t rename what the monitors say.

What arrives#

GET /apps/{app}/machines answers a list with one object per machine. Pulso makes each one a row and flattens the objects inside it, so the process group is config.metadata.fly_process_group. A machine, trimmed:

{
  "id": "e286de4f711e86",
  "name": "holy-sun-1234",
  "state": "started",
  "region": "cdg",
  "host_status": "ok",
  "updated_at": "2026-11-29T14:32:20Z",
  "config": {
    "metadata": { "fly_process_group": "web" }
  },
  "checks": [
    { "name": "servicecheck-00-http-8080", "status": "passing", "output": "Success" }
  ],
  "events": [
    { "type": "start", "status": "started", "source": "flyd", "timestamp": 1795958540000 }
  ]
}

A machine at rest is created, started, stopped, suspended or archived, and failed when it couldn’t start. On its way between them it is starting, stopping, restarting, updating, replacing and the like, all ending in -ing, and launch_failed when a launch failed and it is about to be destroyed. host_status is ok, unknown or unreachable.

Monitors to build#

Machines not running#

Failing health checks#

Hosts Fly can’t reach#

Limits#

Sources: Fly.io’s Machines API, its machines resource and machine states docs, and fly tokens create readonly.


Add Fly.io to Pulso: an HTTP source with the connection that calls its API, 3 monitors with their playbooks and a report, then the settings it asks for.

Add to Pulso

See the monitors, their playbooks and the report