Separate operational measurements from model content
How Bedrock exposes inference metrics and model invocation logs, and how to configure their collection while protecting sensitive prompts and responses. · associate
Amazon Bedrock automatically publishes inference metrics to Amazon CloudWatch in the AWS/Bedrock namespace. Use invocation counts, latency, errors, throttles, and supported token-count metrics to understand workload health. Select the appropriate model dimensions and statistic: a sum answers a count question, while a latency percentile helps reveal slow requests.
Model invocation logging serves a different purpose. It can capture invocation details, including model inputs and outputs, for troubleshooting and analysis. It is disabled by default and must be configured explicitly. You do not need to enable it to receive the automatic inference metrics.
A latency alarm can tell you that requests are slow without exposing their prompts. A content-bearing invocation record can help explain a particular response, but creates another copy of potentially sensitive data. Available metrics and logged content depend on the model and invocation type.
| Property | Inference metrics | Invocation logs |
|---|---|---|
| Main purpose | Health and trends | Invocation investigation |
| Collection | Automatic | Explicitly enabled |
| Prompt and response bodies | Not included | Can be included |
| Typical use | Dashboards and alarms | Inspect individual records |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.