
CloudFront Metrics: Understanding CloudWatch vs. Billing Data
A guide examining the differences between CloudFront operational metrics and billing data, with proven practices for accurate cost management and optimization.
- Real-time metrics with 60-second updates
- Immediate visibility into traffic patterns
- Direct request counting methodology
- Cost Explorer: 18-24 hour delay
- CUR: 24-36 hour finalization period
- Complex aggregation rules
- Request Measurement Methodology
- Total HTTP/HTTPS requests
- Cache operations
- System-generated requests
- Failed attempts
- Invalidation operations
- Data Aggregation Architecture
- The AWS billing report is a high-level view of all activity for AWS services that you're using, including CloudFront.
- The AWS usage report is a summary of activity for a specific service, aggregated by hour, day, or month. It also includes usage charts that provide a graphical representation of your CloudFront usage.
- Sign in to the AWS Management Console and open the AWS Billing and Cost Management console at https://console.aws.amazon.com/costmanagement
- In the navigation pane, choose Bills.
- Choose a Billing period (for example, August 2023).
- On the Charges by service tab, choose CloudFront, and then expand Global or the AWS Region name.
- To download a detailed billing report in CSV format, choose Download all to CSV.
- ProductCode –
AmazonCloudFront
- UsageType – One of the following values:
- A code that identifies the type of data transfer
Invalidations
Executions-CloudFrontFunctions
KeyValueStore-APIOperations
KeyValueStore-EdgeReads
RealTimeLog-KinesisDataStream
SSL-Cert-Custom
- ItemDescription – A description of the billing rate for the UsageType.
- UsageStart Date and UsageEndDate – The day that the usage applies to, in Coordinated Universal Time (UTC).
- UsageQuantity – One of the following values:
- The number of requests during the specified time period
- The amount of data transferred in gigabytes
- The number of objects invalidated
- The sum of the prorated months that you hadSSLcertificates associated with enabled CloudFront distributions. For example, if you have one certificate associated with an enabled distribution for an entire month and another certificate associated with an enabled distribution for half of the month, this value will be 1.5.
- Sign in to the AWS Management Console and open theAWSBilling and Cost Management console at https://console.aws.amazon.com/costmanagement/
- In the navigation pane, choose Cost & Reports.
- Under the AWS Usage Report section, choose Create a Usage Report.
- On the Download usage report page, under Services, choose Amazon CloudFront
- Choose the Usage type.
- Choose the Operation.
- Choose the Time period for the report. If you choose Custom date range, you need to specify the Date range for the report manually.
- Under Report granularity, choose Hourly, Daily, or Monthly.
- Choose Download, and then choose XMLReport or CSVReport.
- Service –
AmazonCloudFront
- Operation –HTTPmethod. Values include
DELETE
,GET
,HEAD
,OPTIONS
,PATCH
,POST
, andPUT
. - UsageType – One of the following values:
- A code that identifies the type of data transfer
Invalidations
Executions-CloudFrontFunctions
KeyValueStore-APIOperations
KeyValueStore-EdgeReads
RealTimeLog-KinesisDataStream
SSL-Cert-Custom
- Resource – Either the ID of the CloudFront distribution associated with the usage or the certificate ID of an SSL certificate that you have associated with a CloudFront distribution.
- StartTime/EndTime – The day that the usage applies to, in Coordinated Universal Time (UTC).
- UsageValue – 1) The number of requests during the specified time period or 2)the amount of data transferred in bytes.
2. Leverage Cost Explorer for quick insights and trend visualization
3. Implement automated CUR data processing for regular cost analysis
4. Maintain separate workflows for operational monitoring and financial reporting
5. Configure automated exports for integration with enterprise financial systems
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.