AWS CloudFront Monitoring


AWS CloudFront - Overview

AWS CloudFront is a content delivery network (CDN) service offered by Amazon Web Services that accelerates distribution of static and dynamic web contents to users. To distribute the contents with the lowest latency, the contents are cached in edge locations. Applications Manager's AWS CloudFront monitoring tool helps you monitor and manage your content delivery network to ensure optimal performance, security, and reliability.

Creating a new AWS CloudFront monitor

To learn how to create a new AWS CloudFront monitor, refer here.

Monitored Parameters

Go to the Monitors Category View by clicking the Monitors tab. Click on the CloudFront instance available under Amazon in the Cloud Apps section. Displayed is the Amazon CloudFront bulk configuration view distributed into three tabs:

  • Availability tab gives the availability history for the past 24 hours or 30 days.
  • Performance tab gives the health status and events for the past 24 hours or 30 days.
  • List view tab enables you to perform bulk admin configurations.

By clicking a monitor from the list, you'll be taken to the AWS CloudFront dashboard which includes the following tabs:

Note: Monitoring of the additional metrics marked with a * must be enabled for deeper insights into a CloudFront distribution. Refer to the AWS documentation to enable additional metrics. To learn about the associated costs, refer to the documentation on additional metrics pricing.

Overview

ParameterDescription
DISTRIBUTION INFORMATION
Domain Name The domain name associated with the CloudFront distribution.
Status The distribution's status. When the status is 'Deployed', the distribution's information is fully propagated to all CloudFront edge locations.
State The operational state of the CloudFront service. Possible values: Enabled/Disabled.
DISTRIBUTION CONFIGURATION
Number of Alternate Domains (CNames) The total number of alternate domain names (CNAMEs) associated with the CloudFront distribution.
Number of Origins The total number of origins configured for the CloudFront distribution.
Number of Behaviours The total number of cache behaviors configured for the CloudFront distribution.
REQUESTS
Rate of Requests The total number of requests received per minute by the CloudFront distribution, between the poll interval (in requests/min).
Total Requests The total number of viewer requests received by the CloudFront distribution, for all HTTP methods and for both HTTP and HTTPS requests, between the poll interval.
DATA TRANSFERRED
Incoming Traffic The total amount of data uploaded by viewers to your origin with CloudFront, using POST and PUT requests, between the poll interval (in MB/min).
Outgoing Traffic The total amount of data downloaded by viewers for GET, HEAD, and OPTIONS requests, between the poll interval (in MB/min).
CACHE HIT RATE*
Cache Hit Rate

The average percentage of all cacheable requests that CloudFront served from its cache during the polling interval. HTTP POST and PUT requests, as well as errors, are not considered cacheable requests.

ORIGIN LATENCY*
Origin Latency

The average time taken from when CloudFront receives a request to when it starts sending a response to the network (not the viewer) for requests that are served from the origin rather than the CloudFront cache during the polling interval. This is also known as first byte latency or time-to-first-byte.

Distribution Errors

ParameterDescription
REQUEST BREAKDOWN
Error Rate The average percentage of all viewer requests for which the response's HTTP status code is 4xx or 5xx, between the poll interval (in %).
Success Rate The average percentage of all viewer requests for which the response's HTTP status code is anything other than 4xx or 5xx, between the poll interval (in %).
ERROR RATE
4xx Error Rate The average percentage of all viewer requests for which the response's HTTP status code is 4xx, between the poll interval (in %).
5xx Error Rate The average percentage of all viewer requests for which the response's HTTP status code is 5xx, between the poll interval (in %).
4XX ERROR RATE*
401 Error Rate The average percentage of all viewer requests for which the response's HTTP status code is a 401 Unauthorized error during the poll interval.
403 Error Rate The average percentage of all viewer requests for which the response's HTTP status code is a 403 Forbidden error during the poll interval.
404 Error Rate The average percentage of all viewer requests for which the response's HTTP status code is a 404 Not Found error between the poll interval.
5XX ERROR RATE*
502 Error Rate The average percentage of all viewer requests for which the response's HTTP status code is a 502 Bad Gateway error during the poll interval.
503 Error Rate The average percentage of all viewer requests for which the response's HTTP status code is a 503 Service Unavailable error during the poll interval.
504 Error Rate The average percentage of all viewer requests for which the response's HTTP status code is a 504 Gateway Timeout error during the poll interval.
LAMBDA ERRORS
Lambda Execution Errors The total number of execution errors that occurred across all Lambda@Edge functions, between the poll interval.
Lambda Validation Errors The total number of validation errors that occurred across all Lambda@Edge functions, between the poll interval.
Lambda Throttle Errors The total number of times Lambda@Edge functions that were throttled due to exceeding the maximum execution time, compilation errors, or an unusually high request rate, between the poll interval.

Lambda@Edge Errors

ParameterDescription
Lambda@Edge Errors By Region
Region The code of the region where the Lambda@Edge errors occurred for the CloudFront distribution.
Region Name The name of the region where the Lambda@Edge errors occurred for the CloudFront distribution
Lambda Execution Errors The total number of execution errors that occurred across all Lambda@Edge functions in the region, between the poll interval.
Lambda Validation Errors The total number of validation errors that occurred across all Lambda@Edge functions in the region, between the poll interval.
Lambda Throttle Errors The total number of times Lambda@Edge functions that were throttled due to exceeding the maximum execution time, compilation errors, or an unusually high request rate in the region, between the poll interval.
Top 5 Lambda Execution Errors
Lambda Execution Errors The top 5 Lambda execution errors in the CloudFront service by region.
Top 5 Lambda Validation Errors
Lambda Validation Errors The top 5 Lambda validation errors in the CloudFront service by region.
Top 5 Lambda Throttle Errors
Lambda Throttle Errors The top 5 Lambda functions throttled in the CloudFront service by region.

Configuration

ParameterDescription
DISTRIBUTION CONFIGURATION
Distribution ID Distribution ID of the CloudFront service.
Last Modified Time The date and time at which the CloudFront distribution was last modified.
Price Class The price class that corressponds with the maximum price you wish to pay for the CloudFront service. Possible values: PriceClass_100/PriceClass_200/PriceClass_All.
HTTP Version The HTTP Version of the CloudFront service.
Default Root Object The object you want CloudFront to request from your origin for when a user requests the root URL for your distribution.
Web ACL ID A unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution.
IPV6 Enabled Indicates whether IPV6 has been enabled or not. Possible values: Yes/No.
Logging Enabled Indicates whether logging has been enabled in the CloudFront service or not. Possible values: Yes/No.
Geo Restriction Indicates whether geo restriction has been enabled in the CloudFront service or not. Possible values: Enabled/Disabled.
Caller Reference The caller reference of the CloudFront service.
Origins
Origin ID The origin ID of the CloudFront service.
Origin Domain Name The origin domain name of the CloudFront service.
Origin Path The origin path of the CloudFront service.
Origin Type The origin type of the CloudFront service. Possible values: S3Origin/CustomOrigin.
Origin Access Identity The origin access identity of the CloudFront service. This metric is only applicable for S3 Origin.
Origin Protocol Policy The origin protocol policy of the CloudFront service. This metric is only applicable for Custom Origin.
Origin HTTP Port The origin protocol policy of the CloudFront service. This metric is only applicable for Custom Origin.
Origin HTTPS Port The origin protocol policy of the CloudFront service. This metric is only applicable for Custom Origin.
Origin Response Timeout The number of origin response timeouts of the CloudFront service (in seconds). This metric is only applicable for Custom Origin.
Origin Keep Alive Timeout Specifies how long CloudFront persists it's connection to the origin (in seconds). This metric is only applicable for Custom Origin.
Cache Behaviors
Path Pattern The path pattern associated with the cache behavior.
Target Origin ID The target origin ID associated with the cache behavior.
Viewer Protocol Policy The protocol that viewers can use to access the files in the origin specified by Target Origin ID when a request matches the Path Pattern. Possible values: allow-all/redirect-to-https/https-only.
Allowed Methods A complex type that contains the HTTP methods you need CloudFront to process and forward to your origin. Possible values:
  • HEAD
  • GET
  • POST
  • PUT
  • PATCH
  • OPTIONS
  • DELETE
Smooth Streaming Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format, using the origin that is associated with the cache behavior.
Custom Error Pages
Error Code The HTTP status code for which you want to specify a customer error page and/or a caching duration.
Error Caching TTL The minimum amount of time that you want CloudFront to cache the HTTP status code specified in the Error Code (in seconds).
Response Page Path The path to the custom error page that you want CloudFront to return to the viewer when your origin returns the HTTP status specified by the Error Code.
Response Code The HTTP status code that you want CloudFront to return to the viewer along with the cutom error page.

Invalidations

ParameterDescription
Recent Invalidations
Invalidation ID The unique identifier for the invalidation request.
Invalidation Status The current status of the invalidation request. Possible values: Completed/InProgress.
Create Time The timestamp indicating the time when the invalidation was created.