Overview
Datadog is a cloud-scale monitoring and security platform. Easyalert integrates with Datadog via webhooks, receiving alerts from monitors and creating incidents automatically.Requirements
- Datadog account
- Easyalert account and active tenant
- Access to Integrations → Webhooks in Datadog
Setup Instructions
Create Integration in Easyalert
- Go to Integrations page from left menu
- Click Add Integration button
- Select Datadog as Source Type
- Enter a name (e.g.,
Datadog Production) - Click Create to save
- Copy the generated Webhook URL
Example: https://api.easyalert.io/api/v1/webhooks/ingest/wh_abc123...
Create Webhook in Datadog
Go to Integrations → Webhooks → New
| Field | Value |
|---|---|
| Name | easyalert |
| URL | Your Easyalert webhook URL |
| Payload | Custom JSON (see below) |
| Custom Headers | Content-Type: application/json |
Configure Payload Template
Use this recommended payload:
NOTE: Datadog uses $VARIABLE syntax (uppercase).
Add Webhook to Monitors
- Edit your monitor
- In Notify your team, add
@webhook-easyalert - Save the monitor
Datadog Variables
Datadog provides these variables for webhooks:| Variable | Description |
|---|---|
$ID | Event ID |
$EVENT_TITLE | Event title |
$HOSTNAME | Host name |
$ALERT_ID | Monitor ID |
$ALERT_METRIC | Metric name |
$ALERT_QUERY | Monitor query |
$ALERT_TRANSITION | Triggered, Recovered |
$ALERT_TYPE | error, warning, info |
$ALERT_STATUS | Current status |
$EVENT_TYPE | Event type |
$EVENT_MSG | Full alert message (HTML) |
$TAGS | Tag list (key:value format) |
$LINK | Datadog UI link |
$DATE | Alert timestamp |
$ORG_NAME | Organization name |
Field Mapping
| Datadog Field | Easyalert Field |
|---|---|
$ID / alertId | Event ID |
$EVENT_TITLE / title | Title |
$EVENT_MSG | Description |
$ALERT_TYPE | Severity mapping |
$ALERT_TRANSITION | Status |
$HOSTNAME | Host |
$LINK | URL |
$TAGS | Tags (parsed) |
Severity Mapping
Alert Type Mapping
| Datadog Alert Type | Easyalert Severity |
|---|---|
| error | Critical |
| warning | Warning |
| info | Info |
Priority Mapping
If you use Datadog priorities:| Datadog Priority | Easyalert Severity |
|---|---|
| P1 | Critical |
| P2 | High |
| P3 | Warning |
| P4 | Info |
| P5 | Info |
Status Handling
| Datadog Transition | Easyalert Status | Action |
|---|---|---|
| Triggered | Problem | Creates/updates incident |
| Re-Triggered | Problem | Updates incident |
| Recovered | OK | Resolves incident |
| No Data | Problem | Creates incident |
| No Data Recovered | OK | Resolves incident |
Tags Parsing
Datadog tags inkey:value format are automatically parsed:
tags.env = "production"tags.service = "web"tags.team = "backend"
Custom Field → Tag Mapping
Datadog Tags ($TAGS)
$TAGS variable brings host/monitor tags automatically:
Custom Fields
All custom fields added to the payload template become tags:Routing Examples
Escalation Routing:Monitor Configuration Tips
Adding Webhook to Monitors
In monitor notification settings:Including Specific Tags
Use template variables in your monitor message:Test
Troubleshooting
Alerts not being received
Alerts not being received
- Verify webhook URL in Datadog integrations 2. Check that
@webhook-easyalertis in monitor notification 3. Test the webhook from Datadog UI 4. Review Datadog webhook delivery logs
Custom fields not becoming tags
Custom fields not becoming tags
Empty values
Empty values
- Ensure
$VARIABLEis uppercase 2. Check if the variable is available for the monitor type 3. Some variables may be empty for certain alert types
Recovery not resolving incidents
Recovery not resolving incidents
- Verify monitor sends recovery notifications 2. Check
alertTransitionincludes “Recovered” 3. EnsurealertIdis consistent between alert and recovery
Tags not appearing
Tags not appearing
Best Practices
Use Priority Levels
Use Priority Levels
Set P1-P5 priority on monitors to ensure proper severity mapping in
Easyalert.
Include All Variables
Include All Variables
Use the recommended payload template to capture all useful information.
Tag Your Monitors
Tag Your Monitors
Add tags like
env, team, and service for better routing and filtering.Configure Recovery Notifications
Configure Recovery Notifications
Ensure monitors send recovery notifications to automatically resolve
incidents.
Use Aggregation Keys
Use Aggregation Keys
Set aggregation keys to help with incident deduplication.
Add Custom Fields for Routing
Add Custom Fields for Routing
Include
customer, team, environment in payload for escalation routing.