Find and filter your most expensive agents and sessions
When you want to know what is driving your spend, you want to rank your agents and spot outlier sessions, so you can focus on the costliest work first.
Read the fleet total and the cost-by-agent ranking
To read the fleet total and ranking (console)
-
Open the cost view in Amazon Bedrock AgentCore Observability and choose a time range.
-
Read the total estimated cost for all your agents in that range.
-
Read the Cost by agent list to see which agents are most expensive. The list is ordered by cost, highest first.
Spot outlier sessions
The Cost tab plots individual sessions over time in the Session cost over time chart, so unusually expensive ones stand out.
-
Look for points that sit apart from the rest; these are the outlier sessions.
-
Switch the Cost view toggle between By session and By resource type to see sessions or the components that drive the total. The Overview, Sessions, Traces, and Spans view tabs, and the graph tabs Usage, Errors, Latency, Cost, and Tokens, switch the rest of the page.
Scope to one agent
Use the Agent selector (and the Endpoint selector) to scope the view to a single agent and see only its total, its sessions, and its breakdown.
To narrow further, see Scope and filter by tag or tenant.
Move from an outlier to its session
In the Sessions view, sort by Total cost to surface outlier sessions, then choose a session to open its traces and drill into its spans. See Investigate an agent session’s cost.
Scope and filter by tag or tenant
When you own part of a fleet, you want to narrow the cost views to your tag or one tenant, so you see only the spend you are responsible for.
Filter by resource tag
Filter by a resource tag, for example a team tag, to see only the agents that carry it. Choose Add filter, then use the Filter by tag, tenant or user ID field. An applied filter appears as a token, for example Tag = environment:prod; use Remove filter to drop one, or Clear filters to drop all. The Tag filter uses the tags on the agent’s AgentCore Runtime resource (the agent’s runtime).
The Tag filter is not available for an agent hosted outside AgentCore Runtime (a self-hosted agent), because it reads the tags on the AgentCore Runtime resource. See Self-hosted compute.
Scope by endpoint
There is no agent-version filter. To narrow to one agent, use the Agent selector, then the Endpoint selector to choose one of its endpoints (for example, DEFAULT). The agent version is shown as an attribute but is not a filter and does not split an agent into separate rows on its own.
Filter by a customer-defined tenant
Filter by a tenant value that your agent sets, to isolate the cost driven by one tenant. The tenant is a customer-defined attribute you pass when you invoke the agent; see Pass the required session and agent attributes.
The per-tenant figure is an estimate calculated from public list prices, so it can differ from your AWS bill. The tenant value is whatever your agent passes when it is invoked.
Filter by a user
Filter by the user a session ran for, to isolate the cost driven by one user. On AgentCore Runtime, the user value is set by AgentCore Runtime from the caller’s IAM principal or from incoming JWT claims (the role ARN that called InvokeAgentRuntime); you do not pass it, and runtimeUserId does not set it. For a self-hosted agent, you pass the user value yourself in baggage (user.id). See Required session and agent attributes.
These filters apply across all views
Tag and tenant filters apply across all Observability views, not only the cost views, so you can narrow traces, latency, and quality to the same scope.