DynamoDB Metrics and Dimensions
When you interact with DynamoDB, it sends the following metrics and dimensions to CloudWatch. You can use the following procedures to view the metrics for DynamoDB.
To view metrics (console)
Metrics are grouped first by the service namespace, and then by the various dimension combinations within each namespace.
-
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/
. -
In the navigation pane, choose Metrics.
-
Select the DynamoDB namespace.
To view metrics (CLI)
-
At a command prompt, use the following command:
aws cloudwatch list-metrics --namespace "AWS/DynamoDB"
CloudWatch displays the following metrics for DynamoDB:
DynamoDB Dimensions and Metrics
The metrics and dimensions that DynamoDB sends to Amazon CloudWatch are listed here.
DynamoDB Metrics
Amazon CloudWatch aggregates the following DynamoDB metrics at one-minute intervals:
-
ConditionalCheckFailedRequests
-
ConsumedReadCapacityUnits
-
ConsumedWriteCapacityUnits
-
ReadThrottleEvents
-
ReturnedBytes
-
ReturnedItemCount
-
ReturnedRecordsCount
-
SuccessfulRequestLatency
-
SystemErrors
-
TimeToLiveDeletedItemCount
-
ThrottledRequests
-
TransactionConflict
-
UserErrors
-
WriteThrottleEvents
For all other DynamoDB metrics, the aggregation granularity is five minutes.
Not all statistics, such as Average or Sum, are applicable for every metric. However, all of these values are available through the Amazon DynamoDB console, or by using the CloudWatch console, AWS CLI, or AWS SDKs for all metrics. In the following table, each metric has a list of valid statistics that are applicable to that metric.
Metric | Description |
---|---|
AccountMaxReads |
The maximum number of read capacity units that can be used by an account. This limit does not apply to on-demand tables or global secondary indexes. Units: Valid Statistics:
|
AccountMaxTableLevelReads |
The maximum number of read capacity units that can be used by a table or global secondary index of an account. For on-demand tables this limit caps the maximum read request units a table or a global secondary index can use. Units: Valid Statistics:
|
AccountMaxTableLevelWrites |
The maximum number of write capacity units that can be used by a table or global secondary index of an account. For on-demand tables this limit caps the maximum write request units a table or a global secondary index can use. Units: Valid Statistics:
|
AccountMaxWrites |
The maximum number of write capacity units that can be used by an account. This limit does not apply to on-demand tables or global secondary indexes. Units: Valid Statistics:
|
AccountProvisionedReadCapacityUtilization |
The percentage of provisioned read capacity units utilized by an account. Units: Valid Statistics:
|
AccountProvisionedWriteCapacityUtilization |
The percentage of provisioned write capacity units utilized by an account. Units: Valid Statistics:
|
AgeOfOldestUnreplicatedRecord |
The elapsed time since a record yet to be replicated to the Kinesis data stream first appeared in the DynamoDB table. Units: Dimensions: Valid Statistics:
|
ConditionalCheckFailedRequests |
The number of failed attempts to perform conditional writes. The
A failed conditional write will result in an HTTP 400 error
(Bad Request). These events are reflected in the
Units: Dimensions: Valid Statistics:
|
ConsumedChangeDataCaptureUnits |
The number of consumed change data capture units. Units: Dimensions: Valid Statistics:
|
ConsumedReadCapacityUnits |
The number of read capacity units consumed over the specified time period, so you can track how much of your provisioned throughput is used. You can retrieve the total consumed read capacity for a table and all of its global secondary indexes, or for a particular global secondary index. For more information, see Read/Write Capacity Mode. The Use the Units: Dimensions: Valid Statistics:
|
ConsumedWriteCapacityUnits |
The number of write capacity units consumed over the specified time period, so you can track how much of your provisioned throughput is used. You can retrieve the total consumed write capacity for a table and all of its global secondary indexes, or for a particular global secondary index. For more information, see Read/Write Capacity Mode. The Use the Units: Dimensions: Valid Statistics:
|
MaxProvisionedTableReadCapacityUtilization |
The percentage of provisioned read capacity units utilized by the highest provisioned read table or global secondary index of an account. Units: Valid Statistics:
|
MaxProvisionedTableWriteCapacityUtilization |
The percentage of provisioned write capacity utilized by the highest provisioned write table or global secondary index of an account. Units: Valid Statistics:
|
OnlineIndexConsumedWriteCapacity |
The number of write capacity units consumed when adding a new global secondary index to a table. If the write capacity of the index is too low, incoming write activity during the backfill phase might be throttled. This can increase the time it takes to create the index. You should monitor this statistic while the index is being built to determine whether the write capacity of the index is underprovisioned. You can adjust the write capacity of the index using the
The Units: Dimensions: Valid Statistics:
|
OnlineIndexPercentageProgress |
The percentage of completion when a new global secondary index is being added to a table. DynamoDB must first allocate resources for the new index, and then backfill attributes from the table into the index. For large tables, this process might take a long time. You should monitor this statistic to view the relative progress as DynamoDB builds the index. Units: Dimensions: Valid Statistics:
|
OnlineIndexThrottleEvents |
The number of write throttle events that occur when adding a new global secondary index to a table. These events indicate that the index creation will take longer to complete, because incoming write activity is exceeding the provisioned write throughput of the index. You can adjust the write capacity of the index using the
The Units: Dimensions: Valid Statistics:
|
PendingReplicationCount |
(This metric is for DynamoDB global tables.) The number of item updates that are written to one replica table, but that have not yet been written to another replica in the global table. Units: Dimensions: Valid Statistics:
|
ProvisionedReadCapacityUnits |
The number of provisioned read capacity units for a table or a global secondary index. TheTableName dimension
returns the ProvisionedReadCapacityUnits for the table, but
not for any global secondary indexes. To view
ProvisionedReadCapacityUnits for a global secondary
index, you must specify both TableName and
GlobalSecondaryIndex .
Units:
Dimensions: Valid Statistics:
|
ProvisionedWriteCapacityUnits |
The number of provisioned write capacity units for a table or a global secondary index. The Units: Dimensions: Valid Statistics:
|
ReadThrottleEvents |
Requests to DynamoDB that exceed the provisioned read capacity units for a table or a global secondary index. A single request can result in multiple events. For example, a
The Units: Dimensions: Valid Statistics:
|
ReplicationLatency |
(This metric is for DynamoDB global tables.) The elapsed time between an updated item appearing in the DynamoDB stream for one replica table, and that item appearing in another replica in the global table. Units: Dimensions: Valid Statistics:
|
ReturnedBytes |
The number of bytes returned by Units: Dimensions: Valid Statistics:
|
ReturnedItemCount |
The number of items returned by The number of items returned is not
necessarily the same as the number of items that were evaluated. For
example, suppose that you requested a Units: Dimensions: Valid Statistics:
|
ReturnedRecordsCount |
The number of stream records returned by Units: Dimensions: Valid Statistics:
|
SuccessfulRequestLatency |
The successful requests to DynamoDB or Amazon DynamoDB Streams during the specified
time period.
Units: Dimensions: Valid Statistics:
|
SystemErrors |
The requests to DynamoDB or Amazon DynamoDB Streams that generate an HTTP 500 status code during the specified time period. An HTTP 500 usually indicates an internal service error. Units: Dimensions: Valid Statistics:
|
TimeToLiveDeletedItemCount |
The number of items deleted by Time to Live (TTL) during the specified time period. This metric helps you monitor the rate of TTL deletions on your table. Units: Dimensions: TableName Valid Statistics:
|
ThrottledPutRecordCount |
The number of records that failed to replicate to the Kinesis data stream due to insufficient Kinesis Data Stream capacity. Units: Dimensions: TableName, DelegatedOperation Valid Statistics:
|
ThrottledRequests |
Requests to DynamoDB that exceed the provisioned throughput limits on a resource (such as a table or an index).
In a batch request ( If any individual request within the batch is throttled, one of the following metrics is incremented:
To gain insight into which event is throttling a request, compare
A throttled request will result in an HTTP 400 status code.
All such events are reflected in the
Units: Dimensions: Valid Statistics:
|
TransactionConflict |
Rejected item-level requests due to transactional conflicts between concurrent requests on the same items. For more information, see Transaction Conflict Handling in DynamoDB. Units: Dimensions: Valid Statistics:
|
UserErrors |
Requests to DynamoDB or Amazon DynamoDB Streams that generate an HTTP 400 status code during the specified time period. An HTTP 400 usually indicates a client-side error, such as an invalid combination of parameters, an attempt to update a nonexistent table, or an incorrect request signature. All such events are reflected in the
Units: Valid Statistics:
|
WriteThrottleEvents |
Requests to DynamoDB that exceed the provisioned write capacity units for a table or a global secondary index. A single request can result in multiple events. For example, a
The Units: Dimensions: Valid Statistics:
|
Dimensions for DynamoDB Metrics
The metrics for DynamoDB are qualified by the values for the account, table name, global secondary index name, or operation. You can use the CloudWatch console to retrieve DynamoDB data along any of the dimensions in the table below.
Dimension | Description |
---|---|
DelegatedOperation
|
This dimension limits the data to operations DynamoDB performs on your behalf. The following operations are captured:
|
GlobalSecondaryIndexName
|
This dimension limits the data to a global secondary index on a
table. If you specify |
Operation
|
This dimension limits the data to one of the following DynamoDB operations:
In addition, you can limit the data to the following Amazon DynamoDB Streams operation:
|
OperationType
|
This dimension limits the data to one of the following operation types:
This dimension is emitted for |
Verb
|
This dimension limits the data to one of the following DynamoDB PartiQL verbs:
This dimension is emitted for the |
ReceivingRegion
|
This dimension limits the data to a particular AWS region. It is used with metrics originating from replica tables within a DynamoDB global table. |
StreamLabel
|
This dimension limits the data to a specific stream label. It is
used with metrics originating from Amazon DynamoDB Streams
|
TableName
|
This dimension limits the data to a specific table. This value can be any table name in the current region and the current AWS account. |