rl client from Client setup.
Before you begin
- Any role that can read Managed Agents can read analytics. See Organizations and roles.
- Figures cover your own organization.
Metric families
Each request reads one family.Read analytics
- Console
- TypeScript
- cURL
- In the sidebar, click Analytics.
- Choose a view: Usage, Completions, Environments, or Quality.
- Choose a time range from Last 24 hours to Last year. The default is Last 7 days.
- Read the chart and the Agents, Tools, and Models tables below it. The header shows how current the figures are.
1000000 is one US dollar. Every figure set has the same fields; a family fills the ones it measures and reports zero for the rest.
Choose the window and filters
Read the response
totalsis the whole window as one figure set.seriesis one point per bucket, oldest first; buckets with no activity are left out, so fill them with zero when you chart.breakdownsare the family’s default groupings, each withrowsranked by the family’s main measure and capped bylimit.- Rows carry a
valueto pass back as a filter, and a readablelabelfor agents, agent versions, and environments. - Percentiles (
p50_ms,p90_ms,p95_ms) are approximate.duration_samplessays how many measurements they come from. Counters and sums are exact. Stackedseries_groupsleave percentiles out. - Freshness.
as_ofis how current the figures are, andlag_secondsis how far behind now that is. A steady lag under a minute is normal; activity afteras_ofshows up in a later read.
sessions counts sessions once, in the bucket they started in. In managed_agent_completion, it counts root sessions by when they first finished successfully, and session_completion_ms divided by sessions is the mean time to finish. turns is filled only by managed_agent_turn. environment_startup_ms sums startup time over successful startups only.
Use analytics well
- Find what’s failing. Read
managed_agent_usagewithseries_group_by=tool_nameand comparetool_failedwithtool_calls. - Find where money goes. Break down by
modeland byexecuting_agent_id, then open that agent’s sessions in Usage and cost. - Watch environments. A rising
environment_failedorp95_msinmanaged_agent_environmentpoints at a setup script or a machine type. - Compare versions. Filter by
executing_agent_version_idbefore and after a change to an agent.
What can go wrong
For every error code, see Errors.
Limits
See Limits for every other limit.
Next steps
Usage and cost
Read one session’s or one tree’s cost.
Evaluations
Score sessions and chart quality over time.
Environments
Fix slow or failing sandbox startups.
Sessions
Open the sessions behind a number.