Skip to main content

aigateway telemetry

Runtime telemetry for AI Gateway workspaces — the data behind the SCM Observability tabs. Data plane; keyed by workspace slug, not UUID.

aigateway telemetry cost

Total and per-day spend for a workspace.

airs aigateway telemetry cost --workspace <slug> [--days <n>] [--output <format>]

Options

FlagRequiredDefaultDescription
--workspace <ref>YesWorkspace slug (e.g. ws-main-a-349e0e); UUID or display name also accepted (CLI resolves to the slug)
--days <n>No7Rolling window in days, counted back from now
--output <format>NoprettyOutput format: pretty, json, yaml

:::warning Costs are in cents

The API reports every cost value in cents and never converts. Pretty output shows dollars; --output json|yaml keeps the raw values in explicitly named totalCents / avgCents / costCents fields.

:::

Examples

airs aigateway telemetry cost --workspace ws-main-a-349e0e
airs aigateway telemetry cost --workspace ws-main-a-349e0e --days 30 --output json

The other telemetry surfaces (requests, tokens, latency, group-bys, raw logs) are not yet exposed by the CLI — scoped for a future release.