Prerequisites
You need permission to add webhooks in Corelayer, configure Datadog’s Webhooks integration, and edit the monitors you want to connect.Setup
1. Create a source
In Corelayer, open Webhooks and click Add Webhook. Set Webhook type to Datadog monitors, enter a Source name, and click Create Webhook. Copy the Webhook URL, Webhook token, and payload template. The token is shown once, so store it before clicking Done.2. Configure Datadog
Open Datadog’s Webhooks integration tile. Add a webhook namedcorelayer and set its URL to the Corelayer webhook URL.
Create a custom variable named CORELAYER_WEBHOOK_TOKEN with the Corelayer token as its value, and select hide from view. In the webhook’s custom headers, enter:
$DATE_POSIX supplies the event time in seconds. Save the webhook.
3. Add it to a monitor
Edit the monitor’s notification message and add@webhook-corelayer. If you chose a different webhook name, use @webhook-<name>. Save the monitor. Datadog’s webhook setup guide explains the notification syntax.
When the monitor sends a Triggered or Re-Triggered notification, look for the resulting investigation in Corelayer.
How alerts are handled
Triggered and Re-Triggered start investigations. Recovered records a resolution without closing the Corelayer issue. Other transitions, including Warn, No Data, and Renotify, are recorded without investigation.
Repeated notifications may be suppressed as duplicates. An accepted webhook request does not mean an investigation has finished.
See Manage sources to change or remove this source.
Troubleshooting
- No notification arrives: Check that the monitor includes the correct
@webhook-<name>mention and that the monitor was saved. 401response: Check the custom variable’s value and theAuthorizationheader. The value afterBearermust be the Corelayer webhook token.- Missing alert details: Use the full payload template above and the Datadog monitors source type. Datadog’s default payload has a different shape.
- No investigation starts: Check
transitionin the payload. Recovery, warning, no-data, and renotify notifications do not start investigations.