|
| 1 | +--- |
| 2 | +title: "Cloudflare Alert Events" |
| 3 | +description: "Sync Cloudflaret alert events to Flashduty via webhook for automated alert noise reduction" |
| 4 | +date: "2024-07-05T10:00:00+08:00" |
| 5 | +url: "https://docs.flashcat.cloud/en/flashduty/Cloudflare-integration-guide" |
| 6 | +--- |
| 7 | + |
| 8 | +Sync Cloudflare alert events to Flashduty via webhook for automated alert noise reduction. |
| 9 | + |
| 10 | +<div class="hide"> |
| 11 | + |
| 12 | +## In Flashduty |
| 13 | +--- |
| 14 | +You can obtain an integration push URL through either of these two methods: |
| 15 | + |
| 16 | +### Using Private Integration |
| 17 | + |
| 18 | +Choose this method when you don't need to route alert events to different channels - it's simpler. |
| 19 | + |
| 20 | +<details> |
| 21 | + <summary>Expand</summary> |
| 22 | + |
| 23 | + 1. Go to the Flashduty console, select **Channel**, and enter a channel's details page |
| 24 | + 2. Select the **Integrations** tab, click **Add Integration** to enter the integration page |
| 25 | + 3. Choose **Cloudflare** integration and click **Save** to generate a card |
| 26 | + 4. Click the generated card to view the **Push URL**, copy it for later use, and you're done |
| 27 | + |
| 28 | +</details> |
| 29 | + |
| 30 | +### Using Shared Integration |
| 31 | + |
| 32 | +Choose this method when you need to route alerts to different channels based on the alert event payload. |
| 33 | + |
| 34 | +<details> |
| 35 | + <summary>Expand</summary> |
| 36 | + |
| 37 | + 1. Go to the Flashduty console, select **Integration Center=>Alert Events** to enter the integration selection page |
| 38 | + 2. Select **Cloudflare** integration: |
| 39 | + - **Integration Name**: Define a name for this integration |
| 40 | + 3. Configure the default route and select the corresponding channel (after the integration is created, you can go to `Route` to configure more routing rules) |
| 41 | + 4. Click **Save** and copy the newly generated **push URL** for later use |
| 42 | + 5. Done |
| 43 | + |
| 44 | +</details> |
| 45 | +</div> |
| 46 | + |
| 47 | + |
| 48 | +## In Cloudflare |
| 49 | +--- |
| 50 | + |
| 51 | +<div class="md-block"> |
| 52 | + |
| 53 | +## 一、Create Notification Object |
| 54 | +1. Log in to the `Cloudflare dashboard` and select your account. |
| 55 | +2. Go to `Notifications` > `Destinations`. |
| 56 | +3. In the `Webhooks` card, select Create. |
| 57 | +4. In the edit page, enter Flashduty as the name and fill in the <span class='integration_url'>push URL</span> for the alert integration in the URL field. |
| 58 | +5. Select `Save and Test` to finish setting up your webhook. |
| 59 | + |
| 60 | +After configuring the Webhook channel, you can use it in notification policies. |
| 61 | + |
| 62 | +</dev> |
| 63 | + |
| 64 | +## 二、Status Mapping |
| 65 | + |
| 66 | +<div class="md-block"> |
| 67 | + |
| 68 | +Currently, all alerts pushed to Flashduty through the Cloudflare integration are set to Warning severity. However, you can customize the severity using the [alert pipeline](https://docs.flashcat.cloud/en/flashduty/alert-pipelines). |
| 69 | + |
| 70 | +</div> |
| 71 | + |
0 commit comments