Linking a Gateway
After logging in, link your gateway to a workspace:- Fetches your available workspaces from Hub
- Lets you choose which workspace to link to
- Prompts for a gateway name (defaults to your hostname)
- Registers the gateway with Hub
Non-Interactive
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--workspace | -w | Workspace ID to link to | |
--name | -n | hostname | Name for this gateway |
Sync Lifecycle
Once linked, the gateway syncs with Hub duringultra start:
- Startup — Gateway connects to Hub and begins background sync
- Data sync — Traces and audit events are synced at the configured interval (default: 60s)
- Heartbeats — Sent at half the sync interval to report gateway health
- Token refresh — OAuth tokens are refreshed automatically when needed
Sync Configuration
Offline Mode
Whenoffline_mode: true, Ultra continues operating normally even if Hub is unreachable. Data is stored locally and can be synced later.
Unlinking a Gateway
Remove the gateway’s connection to Hub:- Notifies Hub that this gateway is disconnecting
- Clears the gateway ID and workspace ID from local config
- Preserves authentication tokens (for future re-linking)
- Keeps local data intact
Gateway Status
Hub tracks each gateway’s status:| Status | Description |
|---|---|
| Online | Gateway is syncing and sending heartbeats |
| Offline | No heartbeat received recently |
| Pending | Gateway registered but hasn’t synced yet |