Serverless Integrations
Incident Management is now generally available! Incident Management is now generally available!

Serverless Integrations

Datadog Serverless Plugin

The Datadog serverless framework plugin automatically installs the Datadog Lambda library to your Python and Node.js serverless applications, and enables the collection of enhanced Lambda metrics, custom metrics, traces, and logs from your Lambda functions. For more information, see the plugin page.

Datadog Serverless Macro

The Datadog Serverless macro for AWS CloudFormation automatically installs the Datadog Lambda library to your Python and Node.js serverless applications that are deployed using AWS CloudFormation, SAM or CDK, and enables the collection of enhanced Lambda metrics, custom metrics, traces, and logs from your Lambda functions. For more information, see the macro page.

Datadog Serverless CLI

The Datadog serverless CLI allows you to set up the instrumentation of your serverless applications from the command line or a CI/CD pipeline. The CLI automatically installs the Datadog Lambda library to your Python and Node.js serverless applications, and enables the collection of enhanced Lambda metrics, custom metrics, traces, and logs from your Lambda functions. For more information, see the CLI page.

AWS Step Functions

Enable the AWS Step Functions integration to automatically get additional tags on your Lambda metrics to identify which state machines a particular function belongs to. Use these tags to get an aggregated view of your Lambda metrics and logs per Step Function on the Serverless view.

  1. Install the AWS Step Functions integration.
  2. Add the following permissions to your Datadog IAM policy to add additional tags to your Lambda metrics.
    AWS PermissionDescription
    states:ListStateMachinesList active Step Functions.
    states:DescribeStateMachineGet Step Function metadata, and tags.
  3. Configure distributed tracing and logging for AWS Step Functions.
  4. Once done, go to the Serverless Homepage and filter your Lambda functions by statemachinename, statemachinearn or stepname.

Amazon EFS for Lambda

Enable Amazon EFS for Lambda to automatically get additional tags on your Lambda metrics to identify which EFS a particular function belongs to. Use these tags to get an aggregated view of your Lambda metrics and logs per EFS on the Serverless view.

  1. Install the Amazon EFS integration.

  2. Add the following permissions to your Datadog IAM policy to collect EFS metrics from Lambda.

    AWS PermissionDescription
    elasticfilesystem:DescribeAccessPointsLists active EFS connected to Lambda functions.
  3. Once done, go to the Serverless view to use the new filesystemid tag on your Lambda functions.

Amazon EFS for Lambda

Lambda@Edge

Use the at_edge, edge_master_name, and edge_master_arn tags to get an aggregated view of your Lambda function metrics and logs as they run in Edge locations.

Further Reading