Datadog Lambda library and the Datadog Lambda Extension (in Node.js and Python) or the Datadog Forwarder (in other Lambda runtimes) together generate enhanced Lambda metrics out-of-the-box for Node.js, Python, Ruby, Java, and Go applications, with low latency, several second granularity, and detailed metadata for cold starts and custom tags.
Enhanced Lambda metrics give you a view above and beyond the default Lambda metrics enabled with the AWS Lambda integration. These metrics are distinguished by being in the
aws.lambda.enhanced.* namespace, and are Datadog’s best practice for setting real-time monitors on your serverless application health.
The following real-time enhanced Lambda metrics are available, and they are tagged with the
runtime. These metrics are distributions, and you can query them using the
Note: When you aren’t using the Datadog Lambda Extension, enhanced metrics are sent to the Datadog Forwarder via CloudWatch Logs, meaning you’ll see an increased volume of logs in CloudWatch. This may affect your AWS bill. To opt-out, set the
DD_ENHANCED_METRICS environment variable to
false on your AWS Lambda functions.
Follow the installation instructions to set up instrumentation of your serverless applications, and the enhanced Lambda metrics are enabled by default.
Note: To enable enhanced Lambda metrics via the Datadog Forwarder without sending the logs for your functions to Datadog, set the
DD_FORWARD_LOG environment variable to
false on the Datadog Forwarder.
Once you’ve enabled Enhanced Lambda Metrics, view your default dashboard in the Datadog app.