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

推荐订阅源

K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
H
Help Net Security
博客园_首页
P
Privacy International News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tenable Blog
Latest news
Latest news
D
Darknet – Hacking Tools, Hacker News & Cyber Security
爱范儿
爱范儿
Cyberwarzone
Cyberwarzone
P
Palo Alto Networks Blog
月光博客
月光博客
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
博客园 - 叶小钗
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
Schneier on Security
A
About on SuperTechFans
F
Full Disclosure
The Cloudflare Blog
T
The Exploit Database - CXSecurity.com
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Security Blog
Microsoft Security Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
News and Events Feed by Topic
www.infosecurity-magazine.com
www.infosecurity-magazine.com
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Webroot Blog
Webroot Blog
量子位
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
美团技术团队
Help Net Security
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
博客园 - 司徒正美
N
Netflix TechBlog - Medium
S
Security @ Cisco Blogs
B
Blog
P
Privacy & Cybersecurity Law Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News - Newest:
Hacker News - Newest: "LLM"
V
Visual Studio Blog
NISL@THU
NISL@THU

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
Send SMS alerts with webhooks and Twilio
Griffin Solot-Kehl, David M. Lentz · 2014-07-31 · via Datadog | The Monitor blog

When an alert triggers in your application or environment, you want your team to know as soon as possible so you can troubleshoot quickly and minimize any user-facing issues. Datadog can automatically alert you via email and collaboration services like Slack and PagerDuty. The simple, real-time communication provided by SMS can also be an effective way to alert your team.

In this post, we’ll walk through how to use Datadog’s webhooks integration to automatically send an SMS message via Twilio. To do this, we’ll show you how to:

- Create a webhook that calls the Twilio SMS API - Use a Synthetic test to call the webhook if an API endpoint is unavailable - Add dynamic data to the webhook’s payload and link to the Datadog mobile app

We’ll use a Synthetic test to trigger our webhook, but this is just one of the many ways you could use webhooks to automatically alert you of issues that can affect your service reliability or user experience. You can use the steps covered in this post to trigger webhooks from event monitors and other types of alerts, too, so you can automatically interact with third-party and internal services as changes occur in your environment.

The webhooks integration tile contains fields to create custom variables, plus the name, URL, and payload of the webhook.
The webhooks integration tile contains fields to create custom variables, plus the name, URL, and payload of the webhook.

Create your webhook

To create a webhook that uses the Twilio SMS API to send a message, first navigate to the webhooks integration tile in the Datadog app (or sign up for a free trial if you’re new to Datadog). Give the webhook a name and enter the Twilio SMS API URL. The example below shows how to construct the API URL. Make sure to replace the variables with your Twilio account SID and authentication token; you can get both of these from your Twilio dashboard.

https://<MY_TWILIO_ACCOUNT_SID>:<MY_TWILIO_AUTH_TOKEN>

@api.twilio.com/2010-04-01/Accounts/<MY_TWILIO_ACCOUNT_SID>/Messages.json

The webhook’s payload is the JSON data that defines the SMS message. It includes the number the message should be delivered to, the number it will come from (which is configured in your Twilio account), and the body of the message, as shown in the sample code below.

{

"To": "+12125551212",

"From": "+12025551234",

"Body": "Synthetic test has failed."

}

The body in this example is just a brief message made up of plain text. Later in this post, we’ll show you how to use the body of your message to provide rich details to your team to speed up their troubleshooting.

The screenshot below shows an example of all the information necessary to create a webhook. Note that we’ve checked the Encode as form checkbox to send the data to the Twilio SMS API in the correct format.

The new webhook form contains name, URL, and payload fields.
The new webhook form contains name, URL, and payload fields.

See the documentation for more information about using Datadog’s webhooks integration.

Trigger your webhook

One way to trigger a webhook is from a Synthetic test, which allows you to proactively evaluate your APIs and key functionality of your application. For example, you can test your store’s checkout process or an endpoint in an internal application to ensure that it’s responding quickly and without errors.

The screenshot below shows the assertions from a Synthetic test. This test will fail if the endpoint does not respond with a status code of 200, indicating everything is OK, within 1500 ms.

The assertions field shows one assertion to enforce a response time of less than fifteen hundred milliseconds and one to enforce a status code of 200.
The assertions field shows one assertion to enforce a response time of less than fifteen hundred milliseconds and one to enforce a status code of 200.

The next screenshot shows the notification message this test will send if it fails. This notification provides context by identifying the endpoint tested (/web-store) and uses the “@” symbol to mention the webhook we created earlier. This will cause the webhook to post its payload—To, From, and Body—to the Twilio SMS API, which will send the SMS message.

The notify your team field shows the notification text, including a mention of the webhook.
The notify your team field shows the notification text, including a mention of the webhook.

Make the most of the webhooks integration

An SMS message sent via a webhook can be your team’s starting point for troubleshooting a failed Synthetic test or other alert. In this section, we’ll show you how to enrich your webhook’s payload by using links and variables to create a message that can help reduce mean time to resolution (MTTR) by giving your incident responders a head start on investigating issues.

Variables

Datadog provides built-in webhook variables that allow you to include alert-specific information in your webhook’s payload. This can help to quickly identify, for example, which test failed or which alert was triggered. And you can create your own custom webhook variables to define values that you can reuse across all your webhooks, which not only gives you a shortcut when you compose your messages but also helps enforce consistency.

In the screenshot below, we’ve created $TO and $FROM variables to hold the strings we use in the webhook’s payload. We’ve also expanded the payload’s body to use the built-in variable $EVENT_MSG to provide context about the alert.

The webhooks integration tile shows the existing custom variables, plus the values of the name, URL, and payload fields of the sms-twilio webhook.
The webhooks integration tile shows the existing custom variables, plus the values of the name, URL, and payload fields of the sms-twilio webhook.

To make the message generated by your webhook actionable, you can include links in the payload to relevant dashboards and other useful pages in Datadog. For example, the sample code below uses the built-in variable, $ORG_NAME, in two links to help facilitate the incident response process. The first link lets you easily search for other incidents in Datadog Incident Management, while the second one allows you to create a new incident if the alert indicates an issue that requires a collaborative incident response.

{

"To": "$TO",

"From": "$FROM",

"Body": "Synthetic test has failed.\r\nSee $ORG_NAME incidents: https://app.datadoghq.com/incidents?query=$ORG_NAME\r\nCreate a new incident: https://app.datadoghq.com/incidents/new"

}

The Datadog mobile app

An SMS alert is just one tap away from the Datadog mobile app. Whether your webhook will be triggered by an event monitor, a failed Synthetic test, or some other alert, you can include a link in your payload to the alert that triggered the webhook, as shown below.

{

"To": "$TO",

"From": "$FROM",

"Body": "Synthetic test has failed.\r\nView this alert in Datadog: https://app.datadoghq.com/monitors/$ALERT_ID"

}

By following the link in an SMS message created by this webhook, users can open the app and begin troubleshooting. The screenshot below shows the alert that triggered (on the left), a search for similar alerts (in the middle), and a dashboard (on the right) showing real-time data that could help us investigate this alert.

A screenshot of the mobile app shows the details of the alert that triggered the webhook, a list of similar web store alerts, and a web store dashboard.
A screenshot of the mobile app shows the details of the alert that triggered the webhook, a list of similar web store alerts, and a web store dashboard.

See the documentation for more information about the Datadog mobile app.

Hook into any service

If you’re using Synthetic Monitoring to test an endpoint that’s part of a Twilio application, an internal application, or a public-facing API, you can leverage Datadog’s webhooks integration to automatically send an SMS notification via Twilio whenever your test fails. But that’s just one way to call a webhook: you can use these steps to automatically trigger actions in any of the services you rely on based on any alert you define in Datadog—including metric alerts, event monitors, anomalies, forecasts, and more. See the documentation for more information and examples. If you’re not already using Datadog, start today with a 14-day free trial.