Linking Fly.io as a source
This source is currently in alpha. The interface and available tables may change.
The Fly.io connector syncs your infrastructure inventory – apps, machines, and volumes – into PostHog. Query your Fly.io fleet alongside product data for auditing, capacity planning, and correlating infrastructure state with user behavior.
Adding a data source
Go to the sources tab of the data pipeline section in PostHog.
Click + New source and then click Link next to Fly.io.
Create an organization-scoped API token. You can do this two ways:
- Run
fly tokens create orgin the Fly CLI - Go to the Tokens section of your Fly.io dashboard
A read-only org token is sufficient.
- Run
Back in PostHog, paste your API token and enter your organization slug. Use
personalfor your personal org. Runfly orgs listto find the slug for other organizations.Select the tables you want to sync, set the sync frequency, then click Import.
Once the syncs are complete, you can start using Fly.io data in PostHog.
Available tables
| Table | Description | Sync method |
|---|---|---|
apps | Apps in the organization. An app is the top-level unit that groups machines, volumes, and networking. | Full refresh |
machines | Machines (Firecracker microVMs) across the organization, one row per machine with its owning app. | Full refresh |
volumes | Volumes (persistent storage) across the organization, one row per volume with its owning app. | Full refresh |
All tables use full refresh, meaning they reload all data on each sync. Incremental sync isn't available for Fly.io tables.
Note: The
machinestable includes aconfigcolumn with the machine configuration overview (guest resources, image, and services). Secret-bearing fields – environment variables, secrets, inline file contents, user-defined metadata, and request headers on services and checks – are excluded for security.
Configuration
| Option | Description |
|---|---|
API tokenType: password Required: True | |
Organization slugType: text Required: True | Your Fly.io organization slug — use |
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
apps | Fly.io apps in the organization. An app is the top-level unit that groups machines, volumes, and networking. | Full refresh | — | id |
machines | Fly.io machines (Firecracker microVMs) across the organization, one row per machine with its owning app. | Full refresh | — | id |
volumes | Fly.io volumes (persistent storage) across the organization, one row per volume with its owning app. | Full refresh | — | id |