API referenceConsole
Cloud provider
Polylane maps your Fly.io apps and machines, reads metrics and logs in every region to spot issues, finds the cause, and writes the fix in your code.

Connect

Connect Fly.io from the terminal. Pass --help for the flags Fly.io accepts, plus --no-browser for headless environments.

Terminal
polylane cloud connect --provider fly

How it works

Resources in the context graph

Polylane maps your apps, machines, volumes, certificates and app secrets. For a secret, Polylane stores the name only. Polylane syncs every 15 minutes.

When a sync finds machines of an app on a new image, Polylane records a deployment for that app, with the machines and regions that changed.

Checks and anomaly detection

An account check counts the machines that are stopped, failed or being destroyed across all apps in the organization.

Each app and machine also gets its own monitor. Polylane reads HTTP requests, the 5xx error rate, responses by status code, CPU and memory from the Fly.io Prometheus API, and the recent logs. Each volume reports its storage use. Polylane compares each series with its usual level, and opens an issue when a change is a real problem.

Fly.io has no API for historical logs. Polylane reads only the recent log buffer that Fly.io keeps, so a log read can cover part of the time window only.

What agents can do

During an investigation, agents read app metrics, recent logs, machines with their image, region and update time, and the release history of an app. Agents can call other Fly.io Machines API endpoints to read more, and can set a watch that wakes a thread when the next deployment of an app lands.

A read-only token cannot change anything in Fly.io. With a token that can write, agents can request changes through the Machines API. The account is read-only in Polylane by default, and each change needs safety review and approval before it runs.

Token types

TypeAccessRecommended
Read-onlyReads resources onlyUse this
DeployCan deploy appsNot necessary
PersonalFull account accessNot recommended

Disconnecting

Disconnecting does not change Fly.io. Revoke the token under Tokens in your Fly.io dashboard.

Disconnect

Disconnecting stops every sync and check and deletes the credentials Polylane held. Everything Polylane set up in Fly.io is removed as well; nothing is left behind.

Terminal
polylane cloud disconnect <id>

Tools

4

Operations agents can perform in threads.

Api
Call any Fly.io Machines REST endpoint that lacks a dedicated tool
List Releases
List release history for a Fly.io app
Query Metrics
Query Fly.io Prometheus metrics for an app
Get Logs
Get logs for a Fly.io app via Prometheus metrics

Supported resources

5

Resource types that show up in your infrastructure graph.

Fly App
Machine
Volume
Certificate
Secret