DynamoDB - Monitoring

Amazon offers CloudWatch for performance aggregation and analysis using the CloudWatch console, command line, or CloudWatch API. You can also use it to set an alarm and complete tasks. It performs certain actions with certain events.
Cloudwatch Console
Use CloudWatch by opening the Management Console and then opening the CloudWatch Console at https://console.aws.amazon.com/cloudwatch/ .
Then you can follow the following steps −
-
Select Metrics in the navigation bar.
-
In the DynamoDB Metrics section of the CloudWatch Metrics by Category panel, select Table Metrics .
-
Use the top bar to scroll down and explore the entire list of table metrics. The watch list contains metric options.
Select Metrics in the navigation bar.
In the DynamoDB Metrics section of the CloudWatch Metrics by Category panel, select Table Metrics .
Use the top bar to scroll down and explore the entire list of table metrics. The watch list contains metric options.
In the results interface, you can select/deselect each metric by checking the box next to the resource name and metric. Then you will be able to view graphs for each element.
API integration
You can access CloudWatch with requests. Use metric values ​​to perform CloudWatch actions. Note. DynamoDB does not send metrics with a value of zero. It simply skips metrics for periods of time when those metrics stay at that value.
Following are some of the most commonly used indicators −
-
ConditionalCheckFailedRequests - Tracks the number of failed attempts for a conditional entry, such as a PutItem conditional entry. Unsuccessful entries increase this score by one when evaluated to false. It also throws an HTTP 400 error.
-
ConsumedReadCapacityUnits - Quantifies the units of capacity consumed over a given period of time. You can use this to examine a single table and consumption index.
-
ConsumedWriteCapacityUnits - Quantifies the capacity units used in a given period of time. You can use this to examine a single table and consumption index.
-
ReadThrottleEvents - Quantifies requests that exceed allocated capacity units in table/index reads . It increases on every gas, including multi-gas batch operations.
-
ReturnedBytes - Quantifies the number of bytes returned from lookups during a given period of time.
-
ReturnedItemCount - Quantifies items returned from Query and Scan operations over a specified time period. It only deals with returned items, not those that have been appraised, which are generally completely different numbers.
ConditionalCheckFailedRequests - Tracks the number of failed attempts for a conditional entry, such as a PutItem conditional entry. Unsuccessful entries increase this score by one when evaluated to false. It also throws an HTTP 400 error.
ConsumedReadCapacityUnits - Quantifies the units of capacity consumed over a given period of time. You can use this to examine a single table and consumption index.
ConsumedWriteCapacityUnits - Quantifies the capacity units used in a given period of time. You can use this to examine a single table and consumption index.
ReadThrottleEvents - Quantifies requests that exceed allocated capacity units in table/index reads . It increases on every gas, including multi-gas batch operations.
ReturnedBytes - Quantifies the number of bytes returned from lookups during a given period of time.
ReturnedItemCount - Quantifies items returned from Query and Scan operations over a specified time period. It only deals with returned items, not those that have been appraised, which are generally completely different numbers.
Note. There are many more metrics, and most of them allow you to calculate averages, sums, maximums, minimums, and counts.