Monitoring Amazon Keyspaces with Amazon CloudWatch - Amazon Keyspaces(针对 Apache Cassandra)
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

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

Monitoring Amazon Keyspaces with Amazon CloudWatch

You can monitor Amazon Keyspaces using CloudWatch, which collects raw data and processes it into readable, near real-time metrics. 这些统计数据会保存 15 个月,从而使您能够访问历史信息,并能够更好地了解您的 Web 应用程序或服务的执行情况。此外,可以设置用于监测特定阈值的警报,并在达到相应阈值时发送通知或执行操作。For more information, see the Amazon CloudWatch User Guide.

注意

To get started quickly with a preconfigured CloudWatch dashboard showing common metrics for Amazon Keyspaces, you can use an AWS CloudFormation template available from https://github.com/aws-samples/amazon-keyspaces-cloudwatch-cloudformation-templates.

How Do I Use Amazon Keyspaces Metrics?

The metrics reported by Amazon Keyspaces provide information that you can analyze in different ways. 以下列表显示了这些指标的一些常见用途。下面列出的是能够带您入门的启发式问题,但并不全面。For more information about metrics and retention, see Metrics.

How can I?

相关指标

如何确定是否发生了任何系统错误?

您可以监控 SystemErrors,以确定是否有任何请求导致了服务器错误代码。Typically, this metric should be equal to zero. 如果不是,您可能需要调查。

如何比较平均预置读取容量与使用的读取容量?

监控平均预置读取容量和使用的读取容量

  1. Set the Period for ConsumedReadCapacityUnits and ProvisionedReadCapacityUnits to the interval you want to monitor.

  2. Change the Statistic for ConsumedReadCapacityUnits from Average to Sum.

  3. 新建一个空的 Math expression (数学表达式).

  4. In the Details section of the new math expression, enter the Id of ConsumedReadCapacityUnits and divide the metric by the cloudwatch PERIOD function of the metric (metric_id/(PERIOD(metric_id)).

  5. 取消选择 ConsumedReadCapacityUnits.

现在,您可以将使用的平均读取容量与预置容量进行比较。For more information on basic arithmetic functions and how to create a time series see Using Metric Math.

如何比较平均预置写入容量与使用的写入容量?

监控平均预置写入容量和使用的写入容量

  1. Set the Period for ConsumedWriteCapacityUnits and ProvisionedWriteCapacityUnits to the interval you want to monitor.

  2. Change the Statistic for ConsumedWriteCapacityUnits from Average to Sum.

  3. 新建一个空的 Math expression (数学表达式).

  4. In the Details section of the new math expression, enter the Id of ConsumedWriteCapacityUnits and divide the metric by the cloudwatch PERIOD function of the metric (metric_id/(PERIOD(metric_id)).

  5. 取消选择 ConsumedWriteCapacityUnits.

现在,您可以将使用的平均写入容量与预置容量进行比较。For more information on basic arithmetic functions and how to create a time series see Using Metric Math.