Datadog push notifications
PushPiper turns Datadog monitor alerts into push notifications through a standard webhook, free for 10,000 messages a month on 10 devices. There are no SMS fees, each message carries up to 1,024 characters, and alerts reach Android, desktop browsers and iPhones on iOS 16.4 or later.
Why use webhooks for Datadog alerts to your phone
Datadog monitors track infrastructure metrics, logs, and synthetics, but getting those events to an engineer's pocket often leads teams toward complex incident platforms. If you run a small engineering team or manage your own servers, you rarely need complicated paging rotations or per-user platform fees.
PushPiper gives you a direct path from Datadog monitors to your devices. You install the client directly from the browser at PushPiper by visiting the site and saving it to your home screen or desktop. There is no app store download required, no carrier registration, and no credit card required to get started.
- Outbound notifications do not incur carrier pass-through fees or segment splitting costs.
- Delivery works across Android, Windows, macOS, Linux, and iOS devices.
- High-priority alerts can play distinct audio patterns such as sirens to wake you up.
- Payloads route over HTTPS with optional end-to-end encryption support.
PushPiper does not provide phone calls, SMS fallback, or automated on-call rotation schedules. If your team requires multi-tier escalation policies across time zones, dedicated incident management platforms like PagerDuty or Opsgenie handle those workflows. For engineers who simply want reliable alerts delivered to their pocket the second a check fails, a standard webhook gets the job done cleanly.
Create the standard PushPiper webhook in Datadog
Datadog connects to external notification systems through its Webhooks integration tile. You will configure your primary webhook to send recovery notices and standard warnings during normal working hours.
- Log in to Datadog and navigate to Integrations, then search for and select the Webhooks tile.
- Scroll to the bottom of the configuration modal and click New.
- In the Name field, enter
pushpiper. Datadog uses this label to create the mention handle@webhook-pushpiper. - In the URL field, enter
https://api.pushpiper.com/1/messages.json. - Enter the JSON payload structure into the Payload text area.
- Tick the Encode as form checkbox directly beneath the payload editor.
- Click Save to enable the webhook destination.
The webhook payload requires your PushPiper application token and your recipient user key. You can find both identifiers in your account dashboard immediately after signing in.
{
"token": "APP_TOKEN",
"user": "USER_KEY",
"title": "$EVENT_TITLE",
"message": "$ALERT_TRANSITION: $EVENT_TITLE",
"url": "$LINK"
}In the payload snippet above, replace APP_TOKEN with your 30-character application token starting with the letter a. Replace USER_KEY with your 30-character user key starting with the letter u, a group key, or up to 50 comma-separated user keys. If you already use Pushover elsewhere in your stack, you can also migrate from Pushover by swapping out the API host and keys while keeping the exact same JSON keys.
Datadog waits up to 15 seconds for a response before timing out a webhook execution. The service retries failed requests only when it receives HTTP 5xx responses or encounters internal errors. PushPiper answers valid requests immediately with an HTTP 200 status code and a JSON response object, preventing Datadog retry delays.
Add a second webhook for urgent notifications
A single notification tone works poorly when a production database drops offline at midnight. To separate actionable emergencies from daytime status updates, configure a second webhook entry in Datadog specifically for urgent incidents.
PushPiper supports five discrete priority levels ranging from -2 for silent inbox logging up to 2 for repeated emergency pages. Setting a priority value of 1 marks the notification as high urgency, which instructs the PushPiper web client to ignore custom quiet hours set on your individual devices.
- In Datadog, return to Integrations and open the Webhooks tile.
- Click New to create an additional entry.
- Set the Name to
pushpiper-urgent. - Set the URL to
https://api.pushpiper.com/1/messages.json. - Copy your existing payload from the standard webhook, but add two extra parameters:
"priority": "1"and"sound": "siren". - Ensure you tick Encode as form before clicking Save.
The PushPiper sound catalog includes 23 built-in audio alerts, including options like pushover, siren, cashregister, and bugle. Using siren on the urgent endpoint ensures critical outages produce an unmistakable warning sound. Note that while high-priority alerts bypass PushPiper quiet hours, web notifications cannot override an iPhone's native hardware mute switch or system Focus modes.
Map Datadog event variables into notifications
Datadog exposes monitor context through built-in template variables that evaluate when a state transition occurs. The following table compares the primary variables available for webhook notifications:
| Variable | Holds |
|---|---|
$EVENT_TITLE | The monitor's title |
$EVENT_MSG | The monitor message, can be long |
$ALERT_TRANSITION | Triggered, Recovered, Warn, No Data and so on |
$ALERT_PRIORITY | P1 to P5 |
$LINK | Link to the event in Datadog |
Using $EVENT_TITLE inside your webhook payload gives you a concise, readable summary on your lock screen. The monitor message variable $EVENT_MSG often contains extensive runbooks, graph snapshots, and Markdown instructions that easily surpass PushPiper's 1,024-character maximum. Keeping the title in the message field avoids unexpected HTTP 400 rejection errors while preserving the direct link to the event via $LINK.
For broader monitoring setups that mix servers, containers, and web monitors, you can review our Uptime Kuma push notifications walkthrough or connect external metrics with Grafana alerts as push notifications.
Trigger webhooks from monitor messages
Once both webhooks exist in Datadog, attach them to your monitors using conditional notification tags. Datadog monitors evaluate template tags dynamically when a threshold trips or returns to a normal state.
Open any existing monitor in Datadog and add the conditional blocks to the monitor message.
{{#is_alert}}@webhook-pushpiper-urgent{{/is_alert}}
{{#is_recovery}}@webhook-pushpiper{{/is_recovery}}This conditional syntax routes state changes across your two endpoints:
- When the monitor enters an alert state, Datadog calls
@webhook-pushpiper-urgent, triggering a high-priority alert with the siren sound that overrides quiet hours. - When the condition resolves, Datadog triggers
@webhook-pushpiper, sending a standard recovery notification that respects quiet hours and plays the default chime.
When the monitor changes state, your phone rings with the designated sound and shows the event link. If you need additional technical details on building custom webhook receivers or sending notifications from command-line scripts, check our API reference for parameter structures and payload formatting options.
Sources
Questions and answers
Why did my Datadog webhook fail with an HTTP 400 error?
PushPiper returns HTTP 400 when the message field exceeds 1,024 characters or when the payload contains nested JSON structures. Ensure you ticked the Encode as form option in Datadog and set the message parameter to use the monitor title rather than the full message body.
Can PushPiper alerts break through iOS Do Not Disturb?
No, PushPiper notifications delivered via Web Push cannot override system-level iOS Focus modes or Do Not Disturb settings. A priority level of 1 or 2 will only bypass the internal quiet hours schedule configured within the PushPiper application settings.
How many notifications can I send from Datadog for free?
PushPiper Free accounts include 10,000 notifications per calendar month shared across up to 10 connected devices. If your infrastructure triggers more than 10,000 alerts in a month, the API responds with HTTP 429 until the quota resets on the first day of the next month at 00:00 UTC.
Does Datadog retry failed notifications if my server goes down?
Datadog only retries webhooks that fail due to 5xx server errors or internal errors. If a webhook returns a client-side error code like HTTP 400 or HTTP 429, Datadog logs the notification failure and does not attempt to send the payload again.