Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Monitor Amazon Bedrock Guardrails using CloudWatch Metrics

Focus mode
Monitor Amazon Bedrock Guardrails using CloudWatch Metrics - Amazon Bedrock

The following table describes runtime metrics provided by guardrails that you can monitor with CloudWatch Metrics.

Runtime metrics

Metric name Unit Description
Invocations SampleCount Number of requests to the ApplyGuardrail API operation
InvocationLatency MilliSeconds Latency of the invocations
InvocationClientErrors SampleCount Number of invocations that result in client-side errors
InvocationServerErrors SampleCount Number of invocations that result in AWS server-side errors
InvocationThrottles SampleCount Number of invocations that the system throttled. Throttled requests and other invocation errors don't count as either Invocations or Errors.
TextUnitCount SampleCount Number of text units consumed by the guardrails policies
InvocationsIntervened SampleCount Number of invocations where the guardrails intervened

You can view guardrail dimensions in the CloudWatch console based on the table below:

Dimension

Dimension name Dimension values Available for the following metrics
Operation ApplyGuardrail
  • Invocations

  • InvocationLatency

  • InvocationClientErrors

  • InvocationServerErrors

  • InvocationThrottles

  • InvocationsIntervened

  • TextUnitCount

GuardrailContentSource
  • Input

  • Output

  • Invocations

  • InvocationLatency

  • InvocationClientErrors

  • InvocationServerErrors

  • InvocationThrottles

  • InvocationsIntervened

  • TextUnitCount

GuardrailPolicyType
  • ContentPolicy

  • TopicPolicy

  • WordPolicy

  • SensitiveInformationPolicy

  • ContextualGroundingPolicy

  • InvocationsIntervened

  • TextUnitCount

GuardrailArn, GuardrailVersion
  • Guardrail Arn

  • Guardrail Version number or DRAFT

  • Invocations

  • InvocationLatency

  • InvocationClientErrors

  • InvocationServerErrors

  • InvocationThrottles

  • InvocationsIntervened

  • TextUnitCount

Use CloudWatch metrics for guardrails

You can get metrics for guardrails with the AWS Management Console, the AWS CLI, or the CloudWatch API. You can use the CloudWatch API through one of the AWS Software Development Kits (SDKs) or the CloudWatch API tools.

Note

You must have the appropriate CloudWatch permissions to monitor guardrails with CloudWatch.

For more information, see Authentication and Access Control for CloudWatch in the CloudWatch User Guide.

View guardrails metrics in the CloudWatch Console

To view metrics (in the CloudWatch console):

  1. Sign in to the AWS Management Console and open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. Choose the AWS/Bedrock/Guardrails namespace.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.