Monitoring with Amazon CloudWatch - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Monitoring with Amazon CloudWatch

You can monitor Amazon DynamoDB Accelerator (DAX) using Amazon CloudWatch, which collects and processes raw data from DAX into readable, near real-time metrics. These statistics are recorded for a period of two weeks. You can then access historical information for a better perspective on how your web application or service is performing. By default, DAX metric data is sent to CloudWatch automatically. For more information, see What Is Amazon CloudWatch? in the Amazon CloudWatch User Guide.

How do I use DAX metrics?

The metrics reported by DAX provide information that you can analyze in different ways. The following list shows some common uses for the metrics. These are suggestions to get you started, and not a comprehensive list.

How Can I?

Relevant Metrics

Determine if any system errors occurred

Monitor FaultRequestCount to determine if any requests resulted in an HTTP 500 (server error) code. This can indicate a DAX internal service error or an HTTP 500 in the underlying table's SystemErrors metric.

Determine if any user errors occurred

Monitor ErrorRequestCount to determine if any requests resulted in an HTTP 400 (client error) code. If you see the error count growing, you might want to investigate and make sure you are sending correct client requests.

Determine if any cache misses occurred

Monitor ItemCacheMisses to determine the number of times an item was not found in the cache, and QueryCacheMisses and ScanCacheMisses to determine the number of times a query or scan result was not found in the cache.

Monitor cache hit rates

Use CloudWatch Metric Math to define a cache hit rate metric using math expressions.

For example, for the item cache, you can use the expression m1/SUM([m1, m2])*100, where m1 is the ItemCacheHits metric and m2 is the ItemCacheMisses metric for your cluster. For the query and scan caches, you can follow the same pattern using the corresponding query and scan cache metric.