

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 Amazon 衡量运营指标 CloudWatch
<a name="monitoring-cloudwatch"></a>

您可以使用监控 Amazon Lex V2 CloudWatch，它会收集原始数据并将其处理为可读的近乎实时的指标。这些统计数据会保存 15 个月，从而使您能够访问历史信息，并能够更好地了解您的 Web 应用程序或服务的执行情况。此外，可以设置用于监测特定阈值的警报，并在达到相应阈值时发送通知或执行操作。有关更多信息，请参阅 [Amazon CloudWatch 用户指南](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/)。

Amazon Lex V2 服务在 `AWS/Lex` 命名空间内报告以下指标。


| 指标 | 说明 | 
| --- | --- | 
| `AssistedSlotResolutionModelAccessDeniedErrorCount` | Amazon Lex V2 被拒绝访问 Amazon Bedrock 的次数<br />`RecognizeUtterance` 和 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />`RecognizeText` 的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `AssistedSlotResolutionModelInvocationCount` | 调用 Amazon Bedrock 的次数。<br />`RecognizeUtterance` 和 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />`RecognizeText` 的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `AssistedSlotResolutionModelSystemErrorCount` | 调用 Amazon Bedrock 时出现 5xx 的次数。<br />`RecognizeUtterance` 和 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />`RecognizeText` 的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `AssistedSlotResolutionModelThrottlingErrorCount` | Amazon Lex 被 Amazon Bedrock 节流的次数。<br />`RecognizeUtterance` 和 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />`RecognizeText` 的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `AssistedSlotResolutionResolvedSlotCount` | Amazon Bedrock 返回槽位值的次数。<br />`RecognizeUtterance` 和 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />`RecognizeText` 的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `KendraIndexAccessError` | Amazon Lex V2 无法访问您的 Amazon Kendra 索引的次数。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `KendraLatency` | Amazon Kendra 对来自 `AMAZON.KendraSearchIntent` 的请求做出响应所花费的时间。<br />有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：毫秒 | 
| `KendraSuccess` | Amazon Lex V2 无法访问您的 Amazon Kendra 索引的次数。<br />有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `KendraSystemErrors` | Amazon Lex V2 无法查询 Amazon Kendra 索引的次数。<br />有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `KendraThrottledEvents` | Amazon Kendra 限制来自 `AMAZON.KendraSearchIntent` 的请求的次数。<br />有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `RuntimeConcurrency` | 指定时间段内的并发连接数。`RuntimeConcurrency` 将被报告为 `StatisticSet`。<br />`RecognizeUtterance` 或 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `RuntimeInvalidLambdaResponses` | 指定时间段内无效 AWS Lambda 响应的数量。<br />有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `RuntimeLambdaErrors` | 指定时间段内的 Lambda 运行时错误数量。<br />有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `RuntimePollyErrors` | 在指定时段内的无效 Amazon Polly 响应的数量。<br />有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `RuntimeRequestCount` | 指定时间段内的运行时请求数。<br />`RecognizeUtterance` 和 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `RuntimeRequestLength` | 与 Amazon Lex V2 机器人对话的总时长。仅适用于该[StartConversation](https://docs.aws.amazon.com/lexv2/latest/APIReference/API_runtime_StartConversation.html)操作。<br />有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：毫秒 | 
| `RuntimeSucessfulRequestLatency` 该指标是 `RuntimeSucessfulRequestLatency`，而不是 `RuntimeSuccessfulRequestLatency`。  | 从发送请求到传回响应的时间段内的成功请求的延迟。<br />`RecognizeUtterance` 和 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：毫秒 | 
| `RuntimeSystemErrors` | 指定时间段内的系统错误的数量。系统错误的响应代码范围为 500 到 599。<br />`RecognizeUtterance` 和 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `RuntimeThrottledEvents` | 受限事件的数目。当 Amazon Lex V2 接收的请求数超出为账户设置的每秒事务数限制时，将对事件进行限制。如果经常超出为账户设置的限制，您可以请求提高限制。要请求提高限制，请参阅 [AWS 服务限制](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html)。<br />`RecognizeUtterance` 和 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 
| `RuntimeUserErrors` | 指定时间段内的用户错误的数量。用户错误的响应代码范围为 400 到 499。<br />`RecognizeUtterance` 和 `StartConversation` 操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效维度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/lexv2/latest/dg/monitoring-cloudwatch.html)<br />单位：个 | 

Amazon Lex V2 指标支持以下维度。


|  维度  |  说明  | 
| --- | --- | 
|  Operation  | 生成该条目的 Amazon Lex V2 操作的名称，即 `RecognizeText`、`RecognizeUtterance`、`StartConversation`、`GetSession`、`PutSession`、`DeleteSession`。 | 
|  BotId  | 机器人的唯一字母数字标识符。 | 
|  BotAliasId  | 机器人别名的唯一字母数字标识符。 | 
|  BotVersion  | 机器人的数字版本。 | 
|  InputMode  | 机器人输入的类型，即语音、文本或 DTMF。 | 
|  LocaleId  | 机器人区域设置的标识符，例如 en-US 或 fr-CA。 | 
|  Model  | 表示 Amazon Bedrock 大型语言模型的模型 ID。 | 
|  ModelType  | 表示从 Amazon Bedrock 调用的大型语言模型的类型。 | 