> ## Documentation Index
> Fetch the complete documentation index at: https://docs.incident.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding Cloudflare as an alert source

> Send Cloudflare notifications into incident.io to page the right people and open incidents.

Cloudflare sends notifications for events across your account, such as DDoS attacks and failing
health checks. Connect it to incident.io and every Cloudflare notification becomes an
incident.io alert, so you can route it to a team, escalate to whoever is on call, and open an
incident when one matters.

| | |
| - | - |
| **Plans** | All plans |
| **Connects with** | An alert source. Cloudflare sends a webhook to incident.io through a notification destination |
| **What you get** | [Alerts](https://docs.incident.io/alerts/getting-started.md) and [alert attributes](https://docs.incident.io/alerts/attributes-and-priorities.md) to route, escalate and declare incidents from |

## Step 1: create the alert source

1. Go to [Alerts](https://app.incident.io/~/on-call/alert-routes/sources) in your incident.io dashboard
   and select the **Sources** tab.
2. Press **Create source**, search for **Cloudflare**, and continue.
3. Give it a name.

The setup page shows a **Name**, **URL** and **Secret** to paste into Cloudflare. Keep it open
for the next step.

## Step 2: connect Cloudflare

In the Cloudflare dashboard:

1. Go to **Notifications → Destinations**, create a webhook destination, and paste the
   **Name**, **URL** and **Secret** from incident.io.
2. Create or edit a notification, and select that destination.

## How alerts behave

* **Title.** The alert title is the Cloudflare notification name. There's no description or
  link back to the event.
* **Deduplication.** Repeat notifications for the same health check update one alert. Every
  other notification, such as a DDoS alert, creates a new alert.
* **Resolution.** A health check alert resolves when it reports `Healthy`. Other notification
  types never send a recovery, so resolve them by hand or turn on
  [auto-resolve](https://docs.incident.io/on-call/alert-sources#auto-resolve-alerts).
* **Attributes.** Use the notification name, alert type or details such as the zone or hostname
  to set [alert attributes](https://docs.incident.io/alerts/attributes-and-priorities.md). The name is the only field you
  choose, so naming notifications after the owning team makes routing easier.

## Step 3: check it works

Go back to the **Notifications** list in Cloudflare and press **Test** on your notification, or
wait for one to fire. The alert should appear on the alert source page in incident.io within a
few seconds.

If nothing arrives, check **Recent requests** on that page. Every request Cloudflare sent is
listed there, including any that were rejected, with the reason.

***

Can't find the alert source you are looking for? Head to our
[integrations page](https://incident.io/integrations) or message us at
[support@incident.io](mailto:support@incident.io).
