View a markdown version of this page

Viewing agent fleet cost and usage in AWS Agent Registry - Amazon Bedrock AgentCore

Viewing agent fleet cost and usage in AWS Agent Registry

Note

Fleet cost and usage in AWS Agent Registry is in preview release and is subject to change.

With the Observability tab of an organization-scoped registry, you can see what the agents in your organization cost and how they’re used, across every account in your organization in AWS Organizations, in one place. You can see the following:

  • Fleet totals – Estimated cost, tokens, and sessions for the date range that you choose, with the change from the previous period of the same length.

  • Cost by resource type – What the fleet spent on model inference, AgentCore Runtime compute, AgentCore Memory, AgentCore Gateway, the AgentCore Browser and Code Interpreter tools, and evaluations.

  • Cost by agent and by account – Each agent’s own cost, and the cost spent in each member account.

  • Sessions – The costliest sessions in the date range, and for each session, its cost by agent and by resource type and the tree of agents that called each other.

Important

The costs on the Observability tab are estimates, not your AWS bill. They’re calculated from the usage that Amazon Bedrock AgentCore records on each span. Use AWS Cost Explorer or the AWS Cost and Usage Report for billed amounts. Viewing the tab runs Amazon CloudWatch Logs Insights queries that are billed to the registry’s account. For more information, see What it costs to use the Observability tab.

How it works

The Observability tab combines two kinds of data in the AWS account that owns your organization-scoped registry:

  • The inventory – Auto-detection creates a registry record for each agent and MCP server that runs in the member accounts of your organization. The tab uses these records to name agents and to link to them. For more information, see Using AWS Agent Registry with AWS Organizations.

  • The cost-stamped spans – Amazon Bedrock AgentCore sends tracing data (spans) for your agents to Amazon CloudWatch in each member account. When AgentCore records a span, it adds the span’s estimated cost. A CloudWatch Logs centralization rule that you create copies these spans from every member account into the registry’s account.

The tab then reads the spans where the rule copied them:

  1. An agent in a member account handles a request. It calls a model, and calls tools through an AgentCore gateway.

  2. AgentCore records spans for the agent’s runtime, its model calls, and the gateway calls in the member account. Each priced span carries its estimated cost in the aws.cost.total attribute.

  3. The centralization rule copies the spans into log groups in the registry’s account. CloudWatch adds the source account and Region to each copied event.

  4. When you open the Observability tab, the console runs CloudWatch Logs Insights queries in the registry’s account. It uses your console credentials, and it adds up the cost, tokens, and sessions that each view shows. It joins the results to the registry’s records by agent ARN to show agent names.

The console doesn’t copy or store your span data. Query results stay in your browser.

For instructions on setting up the Observability tab, see Setting up fleet cost and usage.

Topics