Integrations

Datadog

Receive automated alerts on the metrics that matter most. Connect Mailgun to Datadog to get comprehensive, real-time analytics on your email infrastructure.

Monitor email performance alongside application metrics with the Datadog integration for Mailgun.

Stream Mailgun events to Datadog in real time, access prebuilt dashboards, and set up automated monitors for rapid incident response. Correlate email failures with app errors, track campaign health, and protect sender reputation from one dashboard. 

  • Real-time forwarding of Mailgun events to Datadog logs 
  • Prebuilt dashboards for delivery, bounce, open, and click metrics 
  • Monitor and alert on spikes in bounces, failures, and unsubscribes 
  • Enrich logs with tags for cross-service analysis 
  • Automate downstream workflows from Datadog monitors 

Use Cases

How teams use the Datadog integration for Mailgun

Alert on bounce rate spikes

Detect sudden increases in bounces to protect sender reputation and resolve deliverability issues quickly.

Track campaign engagement

Monitor opens and clicks in real time to understand recipient behavior and improve future campaigns.

Correlate email failures with app errors

Link delivery failures to application logs for clear root-cause analysis and faster resolution.

Trigger automated workflows

Initiate re-engagement campaigns or support tickets from Datadog monitors based on email events.
Image for Set up the Datadog integration for Mailgun in minutes

How To Enable The Integration

Set up the Datadog integration for Mailgun in minutes

Connect Mailgun and Datadog through webhooks – no code required.

  • Step 1: Install the Mailgun integration in Datadog and connect your Mailgun domain, region, and API key.

  • Step 2: Copy the Datadog webhook URL from the integration’s Logs section.

  • Step 3: In Mailgun, navigate to Sending → Webhooks → Add webhook.

  • Step 4: Finalize event setup. Choose event types, paste the URL, and save. Repeat for additional events as needed. 

Why Sinch Mailgun

Correlate email performance with application and infrastructure telemetry in one platform

Real-time visibility

Stream every email event to Datadog within seconds so your team never misses a critical signal.

Faster resolution

Correlate email, app, and infrastructure data in one place to identify root causes and resolve issues quickly.

Workflow automation

Use Datadog monitors to launch re-engagement, support, or remediation flows automatically.

FAQs

Common questions about the Datadog integration

The integration forwards all Mailgun events to Datadog logs, letting you track delivery and bounce rates in real time, set automated alerts, and visualize trends in dashboards.

You can monitor delivered emails, opens, clicks, soft and hard bounces, permanent failures, unsubscribes, and complaints – each configured via webhooks. 

Yes. Enrich email logs with tags and analyze them alongside application and infrastructure metrics for deeper insight and faster root-cause analysis. 

The integration is free. Standard Mailgun and Datadog pricing applies based on your usage and plans. 

Events are delivered in real time via webhooks and appear in Datadog logs within seconds. 

You need a Mailgun account with webhooks enabled and an active Datadog account with Log Management.