Amazon CloudFront is a web service that speeds up the distribution of static and dynamic web content
(such as .html, .css, .js, and image files). CloudFront delivers content through a worldwide network of data centers called edge locations.

CloudFront Distribution Resource Information:

  • Type of Resource: Generic monitorable resource
  • Discovery type: AWS SDK discovery type
  • Discovery profile selection: Resource can be discovered by “CloudFront” in the profiler
  • ResourceTag: CLOUDFRONT
  • Resource Unique Identification: cloudFrontId (front.id())
  • Dependencies: CloudFront may depend on S3 buckets, EC2 instances, and other origins for content delivery

CloudFront Origin Resource Information:

  • Type of Resource: Generic non-monitorable resource
  • Discovery type: AWS SDK discovery type
  • Discovery profile selection: Resource can be discovered by “AWS/Origin” in the profiler
  • ResourceTag: CF_ORIGIN
  • Resource Unique Identification: OriginId (awsOrigin.id())
  • Dependencies: CloudFront Origin runs on CloudFront distributions and points to content sources

For example, when a user requests content that you’re serving with CloudFront, the user is routed to the edge location that provides the lowest latency (time delay). Edge locations help deliver content with the best possible performance.

Use the AWS public cloud integration to discover and collect metrics against the AWS service.

External reference

What is Amazon CloudFront?

Setup

To set up the AWS integration and discover the AWS service, go to AWS Integration Discovery Profile and select AWS CloudFront.

Event support

CloudTrail event support

  • Supported
  • Configurable in OpsRamp AWS Integration Discovery Profile.

CloudWatch alarm support

  • Supported
  • Configurable in OpsRamp AWS Integration Discovery Profile.

Supported metrics

OpsRamp MetricAWS MetricMetric Display NameUnitAggregation TypeDescription
aws_cloudfront_4xxErrorRate4xxErrorRate4xx Error RatePercentAverageThe percentage of all viewer requests for which the response's HTTP status code is 4xx.
aws_cloudfront_401ErrorRate401ErrorRate401Error RatePercentAverageThe percentage of all viewer requests for which the response's HTTP status code is 401.
aws_cloudfront_403ErrorRate403ErrorRate403Error RatePercentAverageThe percentage of all viewer requests for which the response's HTTP status code is 403.
aws_cloudfront_404ErrorRate404ErrorRate404Error RatePercentAverageThe percentage of all viewer requests for which the response's HTTP status code is 404.
aws_cloudfront_5xxErrorRate5xxErrorRate5xx Error RatePercentAverageThe percentage of all viewer requests for which the response's HTTP status code is 5xx.
aws_cloudfront_502ErrorRate502ErrorRate502Error RatePercentAverageThe percentage of all viewer requests for which the response's HTTP status code is 502.
aws_cloudfront_503ErrorRate503ErrorRate503Error RatePercentAverageThe percentage of all viewer requests for which the response's HTTP status code is 503.
aws_cloudfront_504ErrorRate504ErrorRate504Error RatePercentAverageThe percentage of all viewer requests for which the response's HTTP status code is 504.
aws_cloudfront_BytesDownloadedBytesDownloadedBytes DownloadedNoneSumThe total number of bytes downloaded by viewers for GET and HEAD requests.
aws_cloudfront_BytesUploadedBytesUploadedBytes UploadedNoneSumThe total number of bytes that viewers uploaded to CloudFront, using OPTIONS,POST and PUT requests.
aws_cloudfront_CacheHitRateCacheHitRateCache Hit RatePercentAverageThe 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.
aws_cloudfront_OriginLatencyOriginLatencyOrigin LatencyMillisecondsAverageThe total time spent, in milliseconds, from when CloudFront receives a request to when it starts providing a response to the network (not the viewer), for requests that are served from the origin, not the CloudFront cache. This is also known as first byte latency, or time-to-first-byte.
aws_cloudfront_RequestsRequestsRequestsNoneSumThe total number of viewer requests received by CloudFront, for all HTTP methods and for both HTTP and HTTPS requests.
aws_cloudfront_TotalErrorRateTotalErrorRateTotal Error RatePercentAverageThe percentage of all viewer requests for which the response's HTTP status code is 4xx or 5xx.