You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following section outlines Datadog's solution for monitoring AWS serverless applications and Lambda functions. You can also learn more about support for monitoring [Azure serverless][2] and [Google serverless][3] applications.
47
50
48
-
## Quick start
49
-
50
-
If you are new to Datadog, you can get started by [signing up for a Datadog account][4], then following the instructions for [installing Datadog's Lambda Extension][5]. These steps configure your Lambda functions to send real-time metrics, logs, and traces to Datadog:
Getting started to monitor your serverless application is quick and easy. See the [installation instructions][4].
84
+
90
85
## Other serverless clouds
91
86
92
87
### Azure App Service
93
88
94
89
The Datadog extension for Azure App Service provides tracing capabilities for Azure Web Apps.
95
90
96
-
Use the [Azure App Service view][6] to:
91
+
Use the [Azure App Service view][5] to:
97
92
98
93
- Quickly identify apps with high latency or errors
99
94
@@ -103,11 +98,11 @@ Use the [Azure App Service view][6] to:
103
98
104
99
- Map the apps running on your App Service Plans to identify apps that may be impacting costs or performance
105
100
106
-
The Datadog extension for Azure App Service provides tracing capabilities for Azure Web Apps. For more information about setting up tracing in Azure, see the [Azure App Service Extension documentation][7].
101
+
The Datadog extension for Azure App Service provides tracing capabilities for Azure Web Apps. For more information about setting up tracing in Azure, see the [Azure App Service Extension documentation][6].
107
102
108
103
### Google Cloud Functions
109
104
110
-
Google Cloud Functions is a lightweight, event-based, asynchronous compute solution that allows you to create small, single-purpose functions. To monitor serverless functions running on Google Cloud Platform, enable the [Google Cloud Platform integration][8].
105
+
Google Cloud Functions is a lightweight, event-based, asynchronous compute solution that allows you to create small, single-purpose functions. To monitor serverless functions running on Google Cloud Platform, enable the [Google Cloud Platform integration][7].
111
106
112
107
## Further Reading
113
108
@@ -116,8 +111,7 @@ Google Cloud Functions is a lightweight, event-based, asynchronous compute solut
The Lambda extension only supports sending Lambda function telemetry for specific runtimes. The Forwarder is required to collect and add metadata to other AWS service logs, including those from API Gateway, AppSync, and Lambda@Edge.
19
-
20
-
| Runtime | Extension support | Forwarder support |
The Lambda extension can submit Lambda logs, Lambda traces generated by `dd-trace` (not X-Ray), real-time enhanced Lambda metrics, and custom metrics generated by Lambda functions.
22
+
Although Lambda extension replaces the Forwarder as the recommended way to collect telemetry from Lambda functions. The Forwarder is required to collect and add metadata to other AWS service logs, including those from API Gateway, AppSync, and Lambda@Edge.
31
23
32
24
### Advantages
33
25
34
26
The Datadog Lambda Extension offers the following advantages over the Datadog Forwarder:
35
27
36
-
-**Simple to set up**: The Forwarder requires triggers to be set up for every new Lambda function. The Datadog Lambda extension can be added as a Lambda layer. Unlike with the Forwarder, configuring the Lambda extension does not require permissions to install third-party AWS CloudFormation stacks. Also, the Lambda extension sends telemetry directly to Datadog, so you do not need to manage CloudWatch Log group subscriptions for your Lambda functions.
37
-
-**Less infrastructure to manage**: The simpler configuration of the Lambda extension saves time on infrastructure management. For non-Lambda AWS integrations, the Forwarder is still required.
38
-
-**Skip CloudWatch Logs**: The Forwarder converts logs to metrics and traces, which are then sent to Datadog. The Datadog Lambda Extension sends traces, metrics, and logs directly to Datadog, enabling you to reduce the cost associated with CloudWatch Logs.
28
+
-**Skip CloudWatch Logs**: The Forwarder extracts telemetry from logs, which are then sent to Datadog. The Datadog Lambda Extension sends telemetry directly to Datadog, enabling you to reduce the cost associated with CloudWatch Logs.
29
+
-**Simple to set up**: The Datadog Lambda extension can be added as a Lambda layer and sends telemetry directly to Datadog, so you do not need to set up a subscription filter for every new Lambda function's CloudWatch log group.
39
30
40
31
### Trade-offs
41
32
42
33
The extension [adds overhead to your Lambda functions][4], compared to functions that have zero instrumentation. The added overhead affects your AWS bill and Lambda concurrency, and could cause worse cold starts. The majority of the added duration **does not** affect your function's performance. Based on Datadog's latest benchmarking results, the cost overhead is always lower (or about the same when reporting data from remote regions) when using the Lambda extension versus the Forwarder.
43
34
35
+
## Migrate to the Datadog Lambda Extension
36
+
37
+
To migrate from the the Datadog Forwarder to the Datadog Lambda Extension, follow these [instructions][5].
If you are new to Datadog, you can get started by [signing up for a Datadog account][5], then following the instructions for [installing Datadog's Lambda Extension][6]. Completing these steps will configure your Lambda functions to send real-time metrics, logs, and traces to Datadog:
If you are new to Datadog, [sign up for a Datadog account][1], then follow the Datadog Agent installation instructions for _AWS Lambda_. Completing the steps will configure your Lambda functions to send real-time metrics, logs, and traces to Datadog.
20
18
21
19
## Installation instructions
22
20
23
-
For more detailed installation instructions, select the Lambda runtime below for instructions to instrument your serverless application:
21
+
For more detailed installation instructions, select the Lambda runtime below:
Once installed, you can [configure your installation parameters][2] to meet your specific business requirements, such as tagging and scrubbing the collected data.
Once the Datadog serverless monitoring is [installed][1], you can configure it easily to suit your specific business requirements.
14
+
15
+
## Data Collection Method
16
+
17
+
Datadog can collect the monitoring data from your Lambda functions either using the [Forwarder Lambda function][2] or the [Lambda extension][3]. Lambda extension is recommended for new installations. For existing installations using the Forwarder, see [Deciding to migrate to the Datadog Lambda extension][4] for why you should migrate, and follow the [instructions][5] to migrate.
0 commit comments