

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# CloudWatch メトリクスを使用して Amazon Bedrock ガードレールをモニタリングする
<a name="monitoring-guardrails-cw-metrics"></a>

次の表は、Amazon CloudWatch メトリクスを使用してモニタリングできる、Amazon Bedrock ガードレールが提供するランタイムメトリクスを説明しています。

**ランタイムメトリクス**


| メトリクス名 | Unit | 説明 | 
| --- | --- | --- | 
| 呼び出し | サンプル数 | ApplyGuardrail API オペレーションへのリクエスト数 | 
| InvocationLatency | ミリ秒 | リクエストが送信された時点から最後のトークンが受信されるまでの時間。 | 
| InvocationClientErrors | サンプル数 | クライアント側でエラーが発生した呼び出しの数 | 
| InvocationServerErrors | サンプル数 |  AWS サーバー側のエラーが発生する呼び出しの数 | 
| InvocationThrottles | サンプル数 | システムがスロットリングした呼び出しの数。スロットリング済みリクエストは、呼び出しまたはエラーとしてカウントされません。 | 
| TextUnitCount | サンプル数 | ガードレールポリシーによって消費されるテキストユニット数 | 
| InvocationsIntervened | サンプル数 | ガードレールが介入した呼び出しの数 | 
| FindingCounts | サンプル数 | InvokeAutomatedReasoningCheck からの各検出結果数 | 
| TotalFindings | サンプル数 | InvokeAutomatedReasoningCheck リクエストごとに生成された検出結果の数をカウントします。 | 
| 呼び出し (AutomatedReasoning) | サンプル数 | InvokeAutomatedReasoningCheck へのリクエストの数 | 
| レイテンシー | ミリ秒 | 自動推論ポリシーを使用した検証のレイテンシー | 

ガードレールのディメンションは、次の表に基づいて CloudWatch コンソールで表示できます。

**ディメンション**


| ディメンション名 | ディメンション値 | 次のメトリクスで利用可能 | 
| --- | --- | --- | 
| Operation | ApplyGuardrail |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  | 
| GuardrailContentSource |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  | 
| GuardrailPolicyType |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  | 
| GuardrailArn, GuardrailVersion |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  | 
| FindingType \+ PolicyArn \+ PolicyVersion | FindingType \+ PolicyArn \+ PolicyVersion |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  | 
| FindingType \+ GuardrailArn \+ GuardrailVersion | FindingType \+ GuardrailArn \+ GuardrailVersion |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  | 
| PolicyArn \+ PolicyVersion | PolicyArn \+ PolicyVersion |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  | 
| GuardrailArn \+ GuardrailVersion | GuardrailArn \+ GuardrailVersion |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/monitoring-guardrails-cw-metrics.html)  | 

**ガードレール用の CloudWatch メトリクスを取得する**

ガードレールのメトリクスは、 AWS マネジメントコンソール、 CLI、または CloudWatch API AWS で取得できます。CloudWatch API は、 AWS Software Development Kit (SDKsまたは CloudWatch API ツールのいずれかを使用して使用できます。

CloudWatch でのガードレールのメトリクスの名前空間は、`AWS/Bedrock/Guardrails` です。

**注記**  
CloudWatch でガードレールをモニタリングするには、適切な CloudWatch アクセス権限が必要です。詳細については、「CloudWatch ユーザーガイド」の「[CloudWatch に対する認証とアクセスコントロール](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/auth-and-access-control-cw.html)」を参照してください。

**CloudWatch コンソールでガードレールのメトリクスを表示する**

1.  AWS マネジメントコンソールにサインインし、https://console.aws.amazon.com/cloudwatch/ で CloudWatch コンソールを開きます。

1. `AWS/Bedrock/Guardrails` 名前空間を選択します。