使用 CloudWatch 指標監控 Amazon Bedrock Guardrail - Amazon Bedrock

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

使用 CloudWatch 指標監控 Amazon Bedrock Guardrail

下表說明您可以使用指標監控的護欄提供的執行期 CloudWatch 指標。

執行期指標

指標名稱 單位 描述
調用 SampleCount 操作的 ApplyGuardrail API請求數
InvocationLatency MilliSeconds 調用的延遲
InvocationClientErrors SampleCount 導致用戶端錯誤的叫用次數
InvocationServerErrors SampleCount 導致AWS伺服器端錯誤的叫用次數
InvocationThrottles SampleCount 系統調節的叫用次數
TextUnitCount SampleCount 護欄政策使用的文字單位數量
InvocationsIntervened SampleCount 護欄介入的叫用次數

您可以根據下表在 CloudWatch 主控台中檢視護欄維度:

維度

維度名稱 維度值 適用於下列指標
作業 ApplyGuardrail
  • 調用

  • InvocationLatency

  • InvocationClientErrors

  • InvocationServerErrors

  • InvocationThrottles

  • InvocationsIntervened

  • TextUnitCount

GuardrailContentSource
  • 輸入

  • 輸出

  • 調用

  • InvocationLatency

  • InvocationClientErrors

  • InvocationServerErrors

  • InvocationThrottles

  • InvocationsIntervened

  • TextUnitCount

GuardrailPolicyType
  • ContentPolicy

  • TopicPolicy

  • WordPolicy

  • SensitiveInformationPolicy

  • ContextualGroundingPolicy

  • InvocationsIntervened

  • TextUnitCount

GuardrailArn, GuardrailVersion
  • 護欄 Arn

  • Guardrail 版本編號 或 DRAFT

  • 調用

  • InvocationLatency

  • InvocationClientErrors

  • InvocationServerErrors

  • InvocationThrottles

  • InvocationsIntervened

  • TextUnitCount

使用護欄的 CloudWatch 指標

您可以使用 AWS 管理主控台、 AWS CLI或 取得護欄的指標 CloudWatch API。您可以透過其中一個 AWS 軟體開發套件 CloudWatch API(SDKs) CloudWatch API或工具使用 。

注意

您必須擁有適當的 CloudWatch 許可,以監控 護欄 CloudWatch。

如需詳細資訊,請參閱 CloudWatch 《 使用者指南》中的 的身分驗證和存取控制 CloudWatch

在 CloudWatch 主控台中檢視護欄指標

若要檢視指標 (在 CloudWatch 主控台中):

  1. 登入 AWS 管理主控台,並在 開啟 CloudWatch 主控台 https://console.aws.amazon.com/cloudwatch/。

  2. 選擇AWS/Bedrock/Guardrails命名空間。