AWS Lambda@Edge Monitoring Integration

Amazon Web Services (AWS) Lambda@Edge is a feature of Amazon CloudFront that lets you automatically run code or serverless functions from regions closer to your end users, thus reducing the latency. Lambda@Edge enables you to deliver fast, customized web experiences for your customers by rendering personalized content.

With Site24x7's integration with AWS Lambda@Edge, you can monitor the version level metrics and Regional Edge Cache-level metrics like invocations, throttles, errors, and many more. View variations in the traffic at a particular region of your Lambda@Edge function using the Regional Edge Cache level metrics.

Site24x7 is AWS-reviewed Lambda Service Ready Program Partner

AWS-reviewed Lambda Service Ready Program partner

Different versions of Lambda are associated with CloudFront. Whenever there is a version change, the recently associated Lambda@Edge will be discovered as the new monitor. The previous version, or the disassociated Lambda@Edge, will be in the active state as an uptime monitor; Site24x7 does not collect any performance metrics.

Setup and configuration

1. If you haven't already, connect your AWS account with Site24x7's AWS account by either:

  • Creating Site24x7 as an IAM user.
  • Creating a cross-account IAM role. Learn more

2. On the Integrate AWS Account page, check the appropriate box for Lambda@Edge. Learn more

Policy and permissions

Site24x7 uses various Lambda functions and CloudFront Distribution APIs to collect information. Assign the AWS managed policy ReadOnlyAccess to the Site24x7 entity (IAM user or IAM role) to help Site24x7 collect metrics and metadata. If you want to assign a custom policy, please make sure the following read-level actions are present in the policy JSON. Learn more

  • "lambda:GetAccountSettings",
  • "lambda:GetFunctionConfiguration",
  • "lambda:ListTags",
  • "cloudfront:ListPublicKeys",
  • "cloudfront:ListDistributions"

Polling Frequency

Site24x7 queries AWS to collect Lambda@Edge performance metrics according to the configured polling frequency. The polling interval is five minutes by default. Learn more

IT Automations

You can add automations for the AWS services supported by Site24x7. Log in to Site24x7 and go to Admin > IT Automation Templates (+) > Add Automation Templates. Once automations are added, you can schedule them to be executed one after the other.

You can now automate to invoke Lambda@Edge functions using Lambda@Edge automations.

Version level metrics

AttributeDescriptionStatisticData type
Invocations For a version, the number of times the function code is executed, including successful executions and executions that result in a function error. Sum Count
Duration The amount of time that the function code spends processing an event. Average Milliseconds
Concurrent Executions The number of function instances that are processing events. Maximum Count
Throttles The number of invocation requests that are throttled. Sum Count
Metadata Operations Number of metadata operations. Sum Count
Errors The number of invocations that result in a function error. Sum Count
Success Percentage For a version, the percentage of executions that completed without error. - Percentage
Provisioned Concurrency Utilization For a version, the value of the metric ProvisionedConcurrentExecutions divided by the total amount of provisioned concurrency allocated. Maximum Count
Iterator Age For stream event sources, the age of the last item in the batch when the Lambda function received and invoked it. Average Milliseconds
Provisioned Concurrent Executions For a version, the number of function instances that are processing events on provisioned concurrency. Maximum Count
Provisioned Concurrency Invocations For a version, the number of times your function code is executed on provisioned concurrency. Sum Count

Regional Edge Cache metrics

AttributeData type
Invocations Count
Duration Milliseconds
Concurrent Executions Count
Throttles Count
Errors Count
Success Rate Percentage

Forecast

Estimate future values of the following performance metrics and make informed decisions about adding capacity or scaling your AWS infrastructure.

  • Invocations
  • Errors
  • Duration
  • Throttles
  • Success Percentage

Site24x7's Lambda@Edge monitoring interface

Summary

Gain an overview of version level metrics for Lambda like invocations, duration, throttles, concurrent executions, errors, provisioned concurrency utilization, and more metrics.

Lambda@Edge metrics

Various metrics at Regional Edge Cache levels for CloudFront are provided along with time series charts to help you understand the usage of Lambda@Edge in CloudFront. The regional edge locations, along with details like invocation, error, duration, throttles, or concurrent executions, are available in this tab. You can individually set the threshold against each region to alert you when the Lambda@Edge metrics breaches the value.

Function Overview

The configuration details of a Lambda@Edge function are provided under this tab. Details like runtime, handler, role ARN, version, memory size (MB) are few of the details available here.

Outages

The Outages tab shows the history of your Lambda@Edge functions' various states, like down, trouble, critical, or maintenance. It also provides details on the start and end time of an outage, its duration, and comments (if any). You can also manually add an outage, and edit or delete the comments in the same section.

Log Report

Here you can view the audit log data for a Lambda@Edge function, along with details on the timestamp, invocations, errors, and throttles. A consolidated report of the log status of various pollings that have been carried out for your function can be downloaded from this tab in a CSV format.

Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.