# Mailgun + ClickHouse

> Integrate Mailgun campaigns, automations, and leads into ClickHouse with Erathos. Start your 14-day free trial.

Source: https://www.erathos.com/en/pipelines/mailgun-clickhouse
Em português: https://www.erathos.com/pipelines/mailgun-clickhouse

Mailgun is an email delivery service that provides a reliable and scalable infrastructure to send, receive, and track emails at scale. Clickhouse, in turn, is a serverless Big Data solution developed by Google, providing robust large-scale data storage and analytics capabilities.

With Erathos, you can integrate Mailgun data into Clickhouse in just a few minutes. Our platform handles the entire data movement process to your analytical environment, allowing you to blend this data with other sources in your Data Warehouse. This way, your time is focused on what actually drives value — extracting valuable insights and making more data-driven decisions.

### What Mailgun data does Erathos sync with Clickhouse?

The integration automatically syncs key Mailgun objects:

- **Contact lists** — segments, tags, and inclusion criteria
- **Campaigns** — status, sending metrics, and performance by campaign
- **Automations** — workflows, steps, and results for each automation
- **Engagement events** — opens, clicks, conversions, and unsubscribed
- **Email metrics** — open rate, CTR, bounce, and deliverability
- **Custom fields** — personalized properties and tags

### Why sync Mailgun with Clickhouse?

In ClickHouse, you run OLAP queries on Mailgun data in milliseconds, making it ideal for high-concurrency dashboards and high-volume time-series data.

### How it works

Erathos connects to Mailgun via the official API and syncs your data incrementally — only new or updated records are processed on each run, keeping pipelines fast and Clickhouse costs predictable. You choose the sync frequency (from every 5 minutes to daily), the objects to sync, and the destination dataset. Every run is logged with full observability: runtime, rows processed, errors with context, and instant alerts via Slack or email if anything goes wrong.

## Data in your data warehouse in minutes

### Out-of-the-box Mailgun connector

Connect Mailgun to ClickHouse in minutes. Automatically sync lists, campaigns, automations, and events — with full engagement tracking and zero manual scripting.

### Full control over your Mailgun pipelines

Configure frequency and sync mode on a per-table basis. Data lands in ClickHouse optimized for OLAP queries, delivering millisecond-level analytics even across millions of rows.

### End-to-end observability

No more finding out about Mailgun failures when the business team complains. Every run is logged with runtime, rows processed, and error context. Automatic alerts via Slack, Discord, or email as soon as something goes off script — your marketing data stays fresh for your next campaign analyses.

## Centralizing Mailgun data into ClickHouse has never been easier

Erathos is a data ingestion platform for teams that need to reliably centralize marketing data. With the Mailgun connector, you can automatically move lists, campaigns, automations, and engagement events to Clickhouse — complete with full logs, smart alerts, and zero maintenance.

## FAQ

### What is Erathos and how can it help my company?

Erathos is a data ingestion platform built for reliability, transparency, and control. We help data teams connect tools like Mailgun to their data warehouse — with full observability for every run, zero maintenance, and none of the opacity of traditional market tools.

### What Mailgun data does Erathos sync to ClickHouse?

Erathos syncs contact lists, campaigns, automations, engagement events (opens, clicks, conversions), and email metrics from Mailgun to Clickhouse. Segmentation data, tags, and custom fields are also exported.

### How often does Erathos sync data from Mailgun to Clickhouse?

You can configure the sync frequency from every 5 minutes to daily, at the table level. Erathos uses incremental syncs—only new or updated records are processed in each run, keeping the Mailgun pipeline efficient and Clickhouse costs predictable.

### What happens if a Mailgun sync fails?

Erathos automatically detects failures and sends alerts to your email, Slack, or Discord with full context — not just "job failed." Smart retries handle transient errors, and every run is logged with runtime, rows processed, and error context so your team can debug in minutes, not hours.

### Is there a free trial available for the Mailgun connector?

Yes. Every Erathos connector comes with a 14-day free trial. Connect Mailgun to Clickhouse and start syncing immediately — no credit card required.
