I want to make sure that the metrics on the DynamoDB console and the Amazon CloudWatch console use the same values.
Short description
The metrics on the CloudWatch console are based on raw data, but many metrics on the DynamoDB console are based on processed data. For example, the ConsumedReadCapacityUnits metric on CloudWatch calculates the Consumed metric from the Read usage (average units/second) graph on DynamoDB.
When you choose different settings for a metric on the CloudWatch console, metrics can look different between CloudWatch and DynamoDB. For example, your CloudWatch metrics might have different Statistic, Period, and Duration settings. For more information on these settings, see DynamoDB metrics and dimensions.
Resolution
To make sure that the graphs on both CloudWatch and DynamoDB match, set the metric settings to be the same. For example, to change a graph on CloudWatch to look like the Read usage (average units/second) graph on DynamoDB, complete the following steps:
- Open the DynamoDB console.
- In the navigation pane, select the Tables tab. Then, choose your table.
- Select the Monitor tab.
- To open the CloudWatch console from DynamoDB, choose View all CloudWatch metrics.
- Choose the category that the metric is in. For this example, select Table metrics.
- Check the box next to the table name for the ConsumedReadCapacityUnits metric.
- Choose the Graphed metrics tab.
- In the Statistic dropdown list, choose Sum.
- In the Period dropdown list, choose 1 Minute.
- If the CloudWatch graph uses provisioned values, first use the arrows in the Y Axis column to move the values to the right Y axis. Then, move the consumed values to the left Y axis.
- Use a math expression to divide the average units by 60 seconds (for example, m2/60).
Missing metrics
If CloudWatch doesn't list a metric from DynamoDB, then DynamoDB doesn't have recent data for that metric. CloudWatch lists only the metrics that are active during the past two weeks. For more information, see ListMetrics.
Related information
Using math expressions with CloudWatch metrics
Monitoring metrics in DynamoDB with Amazon CloudWatch
Graph a metric