Skip to main content
Version: NG-2.13

AWS CloudFront

Introduction

AWS CloudFront can speed up the delivery of your static content (for example, images, style sheets, JavaScript, and so on) to viewers across the globe. By using CloudFront, you can take advantage of the AWS backbone network and CloudFront edge servers to give your viewers a fast, safe, and reliable experience when they visit your website.

Getting Started

Compatibility

vuSmartMaps supports monitoring Distributions and Edge Functions in your AWS CloudFront

Data Collection Method

vuSmartMaps collects AWS CloudFront data using an internal data collector. This agent collects data based on the source configuration.

Prerequisites

Dependent Configuration

To configure this O11ySource, create a 'credential' of type 'aws' under the 'Definition' tab.

Inputs for Configuring Data Source

  • Source Name: Data source name to uniquely identify the source.
  • AWS Credential: AWS credential that provides Access key and Secret key to access Cloudwatch.
  • Polling Frequency: Specifies the interval in minutes at which data is collected. The period should be between 1 to 60 minutes.

Firewall Requirement

To collect data from this O11ySource, ensure the following ports are opened:

Source IPDestination IPDestination PortProtocolDirection
vuSmartMaps IPAWS CloudWatch Endpoint443TCPOutbound

*Before providing the firewall requirements, please update the port based on the customer environment.

Configuring the Target

Health and Performance metrics of AWS CloudFront is collected through AWS CloudWatch service. So AWS CloudWatch services must be enabled in your AWS account.

An IAM role or user with the following permissions to access CloudWatch metrics.

  • cloudwatch:GetMetricData
  • cloudwatch:ListMetrics

Configuration Steps

  • Enable the O11ySource.
  • Select the Sources tab and press the + button to add a new AWS CloudFront for a Region to be monitored.
  • Populate all the configurations.
  • Click on Save to create the instance.

Metrics Collected

NameDescriptionData Type
RequestsThe total number of requests made to CloudFront distributions.UInt64
BytesDownloadedThe number of bytes downloaded by viewers for GET, HEAD, and OPTIONS.UInt64
BytesUploadedThe number of bytes uploaded to your origin with PUT, POST, PATCH, or DELETE.UInt64
4xxErrorRateThe percentage of all requests for which the response’s HTTP status code was 4xx.Float64
401ErrorRateThe percentage of all requests for which the response’s HTTP status code was 401.Float64
403ErrorRateThe percentage of all requests for which the response’s HTTP status code was 403.Float64
404ErrorRateThe percentage of all requests for which the response’s HTTP status code was 404.Float64
5xxErrorRateThe percentage of all requests for which the response’s HTTP status code was 5xx.Float64
502ErrorRateThe percentage of all requests for which the response’s HTTP status code was 502.Float64
503ErrorRateThe percentage of all requests for which the response’s HTTP status code was 503.Float64
504ErrorRateThe percentage of all requests for which the response’s HTTP status code was 504.Float64
TotalErrorRateThe percentage of all requests that resulted in an error (4xx and 5xx).Float64
CacheHitRateThe percentage of all requests for which CloudFront served the requested object from its cache.Float64
OriginLatencyThe average time, in seconds, that CloudFront takes for forwarding requests to the origin and receiving the first byte of a response from the origin.Float64
LambdaExecutionErrorsThe number of errors generated by Lambda@Edge functions.UInt64
LambdaExecutionThrottlesThe number of times Lambda@Edge function executions were throttled.UInt64
InvocationsThe number of times the function was started (invoked) in a given time periodUInt64
Validation errorsThe number of validation errors produced by the function in a given time period. Validation errors occur when the function runs successfully but returns invalid dataUInt64
Compute utilizationThe amount of time (0-100) that the function took to run as a percentage of the maximum allowed time.Float64
TimestampTime the data is generated in the target machineDateTime64
hostHost - Data collection hostString
Tenant IdTenant IdLowCardinality(String)
BU IdBU IdLowCardinality(String)
RegionAWS RegionLowCardinality(String)
DocTypeDocument TypeLowCardinality(String)
Distribution IDDistribution IdString
Function nameEdge Function nameString