# Cloudflare

[<mark style="color:blue;">Cloudflare</mark>](https://www.cloudflare.com/) is a global network designed to make everything you connect to the Internet secure, private, fast, and reliable.

Route detailed alerts from Cloudflare to the right users in Squadcast.

### Using Cloudflare as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-0fe7b657e32aa4dc525b39230eeb6f7628304674%2FScreenshot%202022-07-29%20at%2012.09.33%20PM%20\(1\)%20\(1\).png?alt=media\&token=a31a38c5-13c7-4109-a22c-ffb44c420b19)

2\. Select **Cloudflare.** Copy the displayed **Webhook URL** to [configure](#create-a-squadcast-webhook-in-admin-labs) it within **Cloudflare.** Finish by clicking **Add Alert Source** -> **Done.**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-1181c3d0bb77c142b7d4ef302daf699dd309ccaf%2Fcloudflare_1.png?alt=media)

{% hint style="warning" %} <mark style="color:orange;">**Important**</mark>**:**

When an alert source turns <mark style="color:green;">Active</mark>, it’ll show up under Configured Alert Sources. You can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source.\
\
An Alert Source is <mark style="color:green;">active</mark> if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

### Create a Squadcast Webhook Alert in Cloudflare

1. Login to your Cloudflare dashboard. Click on **Notifications**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-d4bab3bfb2fcd38eb3cfae88325bf83c97609750%2Fcloudflare_2.png?alt=media)

3. Select **Destinations** and Click on **Create**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-36a69b117b97407d9ad6f599d6b52f2fbd7256cf%2Fcloudflare_3.png?alt=media\&token=667165dc-f9e6-40c7-be34-04d243636062)

3. Provide **Name**, paste previously copied Squadcast Webhook URL in **URL** field and click on **Save and Test**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-431f39f7e941d4c137f5dddc380feb3782bcf27a%2Fcloudflare_4.png?alt=media)

4. Select **All Notifications** and Click on **Add**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-c256fe3b61e0d59ca5387335c2432c25d7679d5d%2Fcloudflare_5.png?alt=media\&token=b7ba414c-d753-41e8-a428-b1e819166921)

5. Select any **Product**. Provide **Notification Name**, Click on **Add Webhook**, select created webhook from dropdown list and click on **Next**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-ca16977da11dd517568e9dd8134eee0fc51d9aa9%2Fcloudflare_6.png?alt=media)

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-c21affd36f472d83a994f17949ffe10453b3ab9f%2Fcloudflare_7.png?alt=media)

5. Select **Health checks** and **Becomes either healthy or unhealthy** and click on **Create**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-8105a7555d099b3001c3a8d1c0278ded723db852%2Fcloudflare_8.png?alt=media\&token=f6d5d0c3-a9ab-401e-83fd-f4cb95f91f9c)

That's it, you are good to go! Your Cloudflare integration is now complete.

Whenever Cloudflare fires an alert, an incident will be created in Squadcast for it. Also, when the **Health check monitor** is **UP** in Cloudflare, the corresponding incident gets **auto-resolved** in Squadcast.

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*
