Overview
Datadog is a cloud-scale monitoring and security platform. EasyContact integrates with Datadog via webhooks, receiving alerts from monitors and creating incidents automatically.Setup Instructions
1
Create Integration in EasyContact
- Go to Configuration → Integrations
- Click Add Integration
- Select Datadog as the type
- Enter a name (e.g., “Production Datadog”)
- Save and copy the webhook URL
2
Create Webhook in Datadog
- Go to Integrations → Integrations
- Search for “Webhooks” and click Configure
- Click New Webhook
- Configure the webhook (see below)
3
Add Webhook to Monitors
- Edit your monitor
- In Notify your team, add
@webhook-easycontact - Save the monitor
4
Test the Integration
Trigger a test alert from a monitor
Webhook Configuration
Basic Setup
| Field | Value |
|---|---|
| Name | easycontact |
| URL | Your EasyContact webhook URL |
| Payload | Custom JSON (see below) |
| Custom Headers | Content-Type: application/json |
Recommended Payload
Template Variables
Datadog provides these variables for webhooks:| Variable | Description |
|---|---|
$ALERT_ID | Unique alert identifier |
$EVENT_TITLE | Alert title |
$ALERT_TYPE | Type: error, warning, info, success |
$ALERT_STATUS | Current status |
$ALERT_TRANSITION | Triggered, Recovered, Re-Triggered, etc. |
$PRIORITY | P1-P5 priority level |
$HOSTNAME | Affected host |
$EVENT_MSG | Full alert message (HTML) |
$TEXT_ONLY_MSG | Plain text message |
$LINK | Link to Datadog alert |
$TAGS | Comma-separated tags |
$DATE | Alert timestamp |
$ORG_ID | Datadog organization ID |
$ORG_NAME | Organization name |
$AGGREG_KEY | Aggregation key |
$ALERT_METRIC | Metric that triggered |
$ALERT_QUERY | Monitor query |
$ALERT_SCOPE | Alert scope |
$SNAPSHOT | Snapshot image URL |
Field Mapping
| Datadog Field | EasyContact Field |
|---|---|
alert_id | Event ID |
alert_title / event_title | Title |
event_msg / text_only_msg | Description |
alert_type | Severity mapping |
alert_status / alert_transition | Status |
hostname | Host |
alert_priority | Priority |
link | URL |
tags | Tags (parsed) |
Severity Mapping
Alert Type Mapping
| Datadog Alert Type | EasyContact Severity |
|---|---|
| error | Critical |
| warning | Warning |
| info | Info |
| success | OK |
Priority Mapping
| Datadog Priority | EasyContact Severity |
|---|---|
| P1 | Critical |
| P2 | High |
| P3 | Warning |
| P4 | Info |
| P5 | Info |
Custom Mapping
Status Handling
| Datadog Transition | EasyContact Status |
|---|---|
| Triggered | Problem |
| Re-Triggered | Problem |
| Recovered | OK |
| No Data | Problem |
| No Data Recovered | OK |
Example Payload
Tags Parsing
Datadog tags inkey:value format are automatically parsed:
env: productionteam: platformservice: api
Enrichment Examples
Monitor Configuration Tips
Adding Webhook to Monitors
In monitor notification settings:Including Specific Tags
Use template variables in your monitor message:Troubleshooting
Alerts not being received
Alerts not being received
- Verify webhook URL in Datadog integrations
- Check that
@webhook-easycontactis in monitor notification - Test the webhook from Datadog UI
- Review Datadog webhook delivery logs
Missing hostname
Missing hostname
- Ensure
$HOSTNAMEis in your webhook payload - Check that the monitor includes host-level data
- For metrics without hosts, hostname may be empty
Recovery not resolving incidents
Recovery not resolving incidents
- Verify monitor sends recovery notifications
- Check
alert_transitionincludes “Recovered” - Ensure
alert_idis 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 EasyContact.
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
$AGGREG_KEY to help with incident deduplication.