Why are the metrics on the DynamoDB console different from the CloudWatch metrics?
Last updated: 2020-05-22
The graphs on the Metrics tab in the Amazon DynamoDB console are different from the graphs in the Amazon CloudWatch console. Why is this happening?
The metrics in the CloudWatch console are raw and provide more statistics options than the metrics in the DynamoDB console. The metrics in the DynamoDB console are average values over one-minute intervals. For example, ConsumedWriteCapacityUnits is the sum of the consumed units over one minute, divided by the number of seconds in a minute (60).
If you want the graphs to look the same in both CloudWatch and DynamoDB, be sure that the period and the time range are the same:
- Open the DynamoDB console.
- In the navigation pane, choose Tables.
- Choose your table, and then choose the Metrics tab.
- Choose View all CloudWatch metrics to open the CloudWatch console.
- Choose the category that the metric is in, such as Table metrics.
- Check the boxes next to the table name for the metrics that you want to see.
- Choose the Graphed metrics tab.
- In the Statistic drop-down list, choose Sum.
- In the Period drop-down list, choose 1 Minute.
- If there are provisioned and consumed metrics on the CloudWatch graph, then use the arrows in the Y Axis column to move the provisioned values to the right Y axis and the consumed values to the left Y axis.
- Use a math expression to divide the metrics by 60 (for example, m2/60).
If CloudWatch doesn't list a metric for DynamoDB, it's probably because DynamoDB doesn't have recent data for that metric. CloudWatch lists only the metrics that were active in the past two weeks. This prevents you from seeing too many old metrics when you call ListMetrics.