Amazon Bedrock AgentCore is in preview release and is subject to change.
Amazon Bedrock AgentCore provided observability metrics
For agents running in the AgentCore runtime, AgentCore automatically generates a set of session metrics which you can view in the Amazon CloudWatch Logs generative AI observability page. You can also use AgentCore observability to monitor the performance of memory, gateway, and built-in tool resources, even if you're not using the AgentCore runtime to host your agents. For memory, gateway, and built-in tool resources, AgentCore outputs a default set of data to CloudWatch.
The following table summarizes the default data provided for each resource type, and where the data is available.
Resource type | Service-provided data | Available in CloudWatch gen AI observability | Available in CloudWatch (Logs or metrics) |
---|---|---|---|
Agent | Metrics | Yes | Yes |
Memory | Metrics, Spans*, Logs* | No | Yes |
Gateway | Metrics | No | Yes |
Tools | Metrics | No | Yes |
* memory spans and logs require enablement. See Add observability to your Amazon Bedrock AgentCore resources to learn more.
Note
To view metrics, spans, and traces for AgentCore, you need to perform a one-time setup process to enable CloudWatch Transaction Search. To learn more see Enabling AgentCore runtime observability.
The AgentCore service only provides logs for memory resources. You can supply your own logs for other resource types, and AgentCore will save them in CloudWatch Logs. Note that to store logs for memory, gateway, and built-in tool resources, you need to configure the necessary log groups in CloudWatch. See Enable observability for AgentCore memory, gateway, and built-in tool resources to learn more.
Refer to the following topics to learn about the default service-provided observability metrics for AgentCore runtime, memory, and gateway resources.
Topics
By instrumenting your agent code, you can also gather more detailed trace and span data as well as custom metrics. See Enabling observability in agent code for AgentCore-hosted agents to learn more.