Posted On: Dec 19, 2019

Amazon CloudFront now offers eight additional real-time metrics in Amazon CloudWatch. These new metrics provide you even more visibility into the performance of your CloudFront traffic. You can use CloudFront’s real-time metrics to monitor, alarm, and receive notifications on the operational performance of your CloudFront distributions. CloudFront already provides six operational metrics, and four Lambda@Edge function metrics, to all CloudFront customers at no additional cost.  

The eight new metrics include:

Cache Hit Rate: The percentage of all cacheable requests for which CloudFront served the content from its cache. HTTP POST and PUT requests, and errors, are not considered cacheable requests. The Cache Hit Rate allows you to determine the proportion of your viewer requests that are served from CloudFront edge caches instead of going to your origin servers for content.

Origin Latency: The total time spent in milliseconds from when CloudFront receives a request to when it provides a response to the network (not the viewer), for requests that are served from the origin, not the CloudFront cache. Origin Latency allows you to monitor the performance of your origin server.

Error Rate by status code: The percentage of all viewer requests for which the response's HTTP status code is a particular code in the 4xx or 5xx range. This metric is available for the following error codes: 401, 403, 404, 502, 503, and 504. The Error Rate metric allows you to identify the specific type of HTTP status code behind the 4xx or 5xx errors.

These new metrics can now be enabled in the monitoring page of your CloudFront console, standard CloudWatch rates apply. Additional details on how to enable these metrics are available at Viewing Additional CloudFront Distribution Metrics