惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
InfoQ
C
CERT Recently Published Vulnerability Notes
The Last Watchdog
The Last Watchdog
P
Proofpoint News Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
GbyAI
GbyAI
T
Tenable Blog
博客园 - 三生石上(FineUI控件)
P
Privacy & Cybersecurity Law Blog
Simon Willison's Weblog
Simon Willison's Weblog
Jina AI
Jina AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tor Project blog
博客园_首页
F
Fortinet All Blogs
博客园 - Franky
Latest news
Latest news
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
D
Docker
Project Zero
Project Zero
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
Cisco Talos Blog
Cisco Talos Blog
Y
Y Combinator Blog
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
H
Help Net Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Blog — PlanetScale
Blog — PlanetScale
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
PCI Perspectives
PCI Perspectives
Cloudbric
Cloudbric
V
Visual Studio Blog
Recorded Future
Recorded Future
人人都是产品经理
人人都是产品经理

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis Monitor Aruba Central in Datadog How we centralize and remediate risks with Datadog Case Management Accelerate incident response with Datadog and ServiceNow Monitor your application and network load balancer logs Understanding Karpenter architecture for Kubernetes autoscaling Tools for collecting metrics and logs from Karpenter Monitor Karpenter with Datadog What your product data is actually saying Key metrics for monitoring Karpenter Securing Datadog’s platform in the AI age: The role of observability data Four ways engineering teams use the Datadog MCP Server to power AI agents Approaching your observability migration with the right mindset Meet the new Bits AI SRE: Deeper reasoning, twice as fast Key learnings from the 2026 State of DevSecOps study Use plain English to query your multi-cloud infrastructure in Resource Catalog Simplifying troubleshooting across the user journey with Datadog Synthetic Monitoring Protect your OCI resources with Datadog Cloud Security This Month in Datadog - February 2026 Amazon EC2 security: How misconfigured and public AMIs expand your cloud attack surface Enable end-to-end visibility into your Java apps with a single command Measure and improve mobile app startup performance with Datadog RUM Evaluating our AI Guard application to improve quality and control cost Identify untested code across every level of your codebase Make use of guardrail metrics and stop babysitting your releases Monitor Versa Networks SD-WAN performance in Datadog Improve performance and reliability with APM Recommendations Remediate transitive vulnerabilities faster with Datadog Software Composition Analysis Generate audit-ready vulnerability and compliance reports with Datadog Sheets Monitor Fortinet FortiManager performance in Datadog Improve test coverage across codebases with Datadog Code Coverage Move fast, don’t break things: Consistent testing standards at scale Enrich logs with ServiceNow CMDB context before routing to any SIEM or logging tool Monitor Lustre with Datadog Make faster, better product decisions with Datadog Product Analytics Surface and remediate runtime posture issues with Workload Protection Findings Protect agentic AI applications with Datadog AI Guard How to optimize JavaScript code with CSS Trace Google Pub/Sub workloads in Cloud Run with Datadog Detect human names in logs with ML in Sensitive Data Scanner How we cut our NLQ agent debugging time from hours to minutes with LLM Observability Debug PostgreSQL query latency faster with EXPLAIN ANALYZE in Datadog Database Monitoring Datadog acquires Propolis Unify and correlate frontend and backend data with retention filters Scale compliance across global frameworks with Datadog Cloud Security Monitor Arista VeloCloud SD-WAN performance with Datadog Building reliable dashboard agents with Datadog LLM Observability Simplify log collection and aggregation for MSSPs with Datadog Observability Pipelines Mitigation for Node.js denial-of-service vulnerability affecting Datadog APM Automate flaky test fixes with the Bits AI Dev Agent and Test Optimization How we built an AI SRE agent that investigates like a team of engineers Datadog integrations 2025 recap: Observability for AI, security, and hybrid cloud Design effective executive dashboards with Datadog Implement dbt data quality checks with dbt-expectations Bring faster visibility into AWS Lambda functions with remote instrumentation Troubleshoot faster with the GitLab Source Code integration in Datadog How Cambia Health Solutions saved $30,000 monthly with Cloud Cost Management and the Datadog Resource Catalog Normalize any logs for Cloud SIEM with Datadog's OCSF processor Optimizing Datadog at scale: Cost-efficient observability at Zendesk Detect, diagnose, and resolve network issues easily with CNM Network Health Connect engineering errors to user impact in early-stage products Cilium configuration for Kubernetes operations at scale Designing feedback loops for progressive delivery Ship features faster and safer with Datadog Feature Flags Choosing the right OpenTelemetry Collector distribution Route your monitor alerts with Datadog monitor notification rules Automate Cloud SIEM investigations with Bits AI Security Analyst Cloud threat detection: How to identify risky activity across control and data planes Collecting Kafka performance metrics Monitoring Kafka with Datadog Monitoring Kafka performance metrics
Monitor your Lambda functions with Datadog’s Serverless Framework plugin
Stephen Pinkerton · 2019-09-11 · via Datadog | The Monitor blog

Since it was released in 2015, the Serverless Framework has become the community-favorite way to manage and deploy serverless applications in the cloud. Similar to Terraform and CloudFormation, it lets you express infrastructure as code, making it easy to share and version-control your entire serverless environment.

However, after deploying your serverless application, it can be challenging to answer questions like: How is my code running? Are there cold starts or bottlenecks? How will I know if my serverless application or one of its dependencies starts throwing errors? To make it easy to collect observability data from your serverless applications, we built the Datadog Serverless plugin. Without any code changes, you can painlessly instrument your AWS Lambda functions to get enhanced, real-time visibility into your serverless functions, applications, and cloud infrastructure in one place.

Trace requests across Lambda functions with datadog’s serverless plugin

Monitoring Lambda functions with Datadog

Serverless, the concept, centers around the idea of solving business problems, while letting a cloud provider manage the underlying infrastructure (containers, scaling groups, orchestration, etc.). But serverless environments are fundamentally different than those running on cloud-native infrastructure or on-prem—there is no place to run a monitoring agent, and you get billed only when your application runs. When it comes to monitoring, the “why” stays the same, but the “what” and “how” differ.

From working with our customers, we’ve noticed several common requirements for serverless monitoring. First, performance matters—adding latency to applications is a non-starter. So, we developed the Datadog Lambda Layer, which provides a real-time view into custom metrics from your serverless functions—with minimal overhead.

Another theme is that serverless applications rarely exist in isolation—they’re usually part of a larger application or group of microservices. Datadog’s Lambda Layer ties together Lambda traces from AWS X-Ray and APM traces from hosts and containers, allowing you to get end-to-end visibility into requests as they travel across any type of infrastructure—whether they access Lambda functions, containers, hosts, or any combination thereof.

The Serverless plugin includes built-in support for Datadog’s AWS X-Ray integration and Lambda Layers, so you can track custom business metrics, automatically instrument your Lambda functions, and get end-to-end visibility into requests as they travel across your serverless architecture.

Monitor and trace requests across Lambda functions with datadog’s serverless plugin, lambda layer, and aws x-ray integration

Getting started

The Datadog Serverless plugin supports Lambda functions written in Node.js and Python. For this example, we’ll use Node.js, but the steps are similar for Python. To set up a new project (named my-awesome-service in this example), run:

# install the serverless framework CLI

npm install -g serverless

# create a new service using the CLI's AWS Node.js template

serverless create --template aws-nodejs --path my-awesome-service

# using Python?

# serverless create --template aws-python3 --path my-awesome-service

# switch to the project directory and install the Datadog plugin

cd my-awesome-service

npm install --save-dev serverless-plugin-datadog

# using Yarn?

# yarn add --dev serverless-plugin-datadog

In your project directory, you should see a populated configuration file (serverless.yml), as well as a file for your Lambda handlers (handler.js). The simplest configuration file you need to get started with Datadog is:

service: my-awesome-service

plugins:

- serverless-plugin-datadog

provider:

name: aws

runtime: nodejs10.x

functions:

hello:

handler: handler.hello

events:

- http: GET hello

custom:

datadog:

addLayers: true

apiKey: "<YOUR_DATADOG_API_KEY>"

flushMetricsToLogs: false

The Serverless Framework’s aws-nodejs template configuration file configures a hello Lambda function by default. Note that addLayers is set to true—this will configure the plugin to automatically add the Datadog Node.js and Python Lambda Layers to your functions, so you can simply import the necessary Layer methods into your function code to collect custom metrics (as described in the next section). If you use other runtimes like Ruby or Go, you can follow the instructions here to install the desired Layers, and configure the Serverless Framework to add them to your service.

flushMetricsToLogs gives you the option to submit custom metrics to Datadog asynchronously. If you wish to enable it, make sure you’ve also set up the most recent version of the Datadog Lambda Log Forwarder.

Substitute your Datadog API key under apiKey (or store your Datadog API key in an environment variable if desired). You’re almost ready to go! If you haven’t done so already, you’ll need to set up your AWS credentials for the Serverless Framework. Lastly, enable the AWS integration in your Datadog account. If you want to collect your logs as well, add the Datadog Lambda Forwarder to your AWS account.

Configure the function to submit a custom metric

After we’ve configured the Serverless Framework, we’re ready to code. Go ahead and copy and paste the following snippet into your handler.js file:

const { datadog, sendDistributionMetric } = require("datadog-lambda-js");

async function hello(event, context) {

sendDistributionMetric(

"coffee_house.order_value", // Metric name

12.45, // Metric value

"product:latte", "order:online" // Associated tags

);

return {

statusCode: 200,

body: "hello, dog!",

};

}

module.exports.hello = datadog(hello);

This example code configures the hello function to report the value of a custom metric named coffee_house.order_value, and tags the metric with metadata about the order (product:latte and order:online). See the documentation for more details about configuring your functions to report custom metrics.

Deploy and explore

Then simply run serverless deploy to deploy your function. After your package uploads, you’ll see a URL in your terminal output corresponding to the Lambda function. Copy and paste the link into your browser to send an HTTP request.

Now head over to your Datadog account to start exploring key performance metrics (invocations, errors, and duration) from your function. The Serverless view aggregates data from all of the serverless functions running in your environment, enabling you to monitor their performance in one place. You can search and filter by name, AWS account, region, runtime, or any tag—or click on a specific function to inspect its key performance metrics, distributed traces, and logs.

Monitor Lambda functions with datadog’s serverless plugin and serverless view

Get plugged in to your serverless environment

If you’re already monitoring your serverless applications and infrastructure with Datadog, you can immediately install the Serverless Framework plugin to collect custom metrics and traces from your Python and Node.js Lambda functions in real time. If you’re new to Datadog, get started with a free trial.