

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

# 使用 Amazon CloudWatch 監控 Amazon Keyspaces
<a name="monitoring-cloudwatch"></a>

您可以使用 Amazon CloudWatch 監控 Amazon Keyspaces，這會收集原始資料並將其處理為可讀且幾近即時的指標。這些統計資料會保留 15 個月，以便您存取歷史資訊，並更清楚 Web 應用程式或服務的執行效能。

您也可以設定留意特定閾值的警示，當滿足這些閾值時傳送通知或採取動作。如需詳細資訊，請參閱 [Amazon CloudWatch 使用者指南](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/)。

**注意**  
若要快速開始使用顯示 Amazon Keyspaces 常見指標的預先設定 CloudWatch 儀表板，您可以使用 提供的 CloudFormation 範本[https://github.com/aws-samples/amazon-keyspaces-cloudwatch-cloudformation-templates](https://github.com/aws-samples/amazon-keyspaces-cloudwatch-cloudformation-templates)。

**Topics**
+ [如何使用 Amazon Keyspaces 指標？](#how-to-use-metrics)
+ [Amazon Keyspaces 指標和維度](metrics-dimensions.md)
+ [在 CloudWatch 中檢視 Amazon Keyspaces 指標](view-metrics.md)
+ [建立 CloudWatch 警示以監控 Amazon Keyspaces](creating-alarms.md)

## 如何使用 Amazon Keyspaces 指標？
<a name="how-to-use-metrics"></a>

Amazon Keyspaces 報告的指標提供您可以以不同方式分析的資訊。下列清單顯示一些常見的指標用途。這些是協助您開始的建議，而不是完整清單。如需指標和保留的詳細資訊，請參閱[指標](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Metric)。


****  

|  如何？  |  相關指標  | 
| --- | --- | 
| 如何判斷是否發生任何系統錯誤？ | 您可以監控 `SystemErrors`，以判斷是否有任何請求導致伺服器錯誤碼。這項指標通常應該等於零。如果不是，您可能想要調查。 | 
| 如何比較平均佈建讀取與已耗用讀取容量？ | 監控平均佈建的讀取容量和耗用的讀取容量[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/keyspaces/latest/devguide/monitoring-cloudwatch.html)<br />您現在可以將平均消耗的讀取容量與佈建的容量進行比較。如需基本算術函數以及如何建立時間序列的詳細資訊，請參閱[使用指標數學](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html)。 | 
| 如何比較平均佈建寫入與消耗的寫入容量？ | 監控平均佈建寫入容量和耗用寫入容量[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/keyspaces/latest/devguide/monitoring-cloudwatch.html)<br />您現在可以將平均耗用寫入容量與佈建容量進行比較。如需基本算術函數以及如何建立時間序列的詳細資訊，請參閱[使用指標數學](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html)。 | 