|
| 1 | +--- |
| 2 | +title: "Harbor Alert Integration" |
| 3 | +description: "Sync Harbor alert events to Flashduty via webhook for automated alert noise reduction" |
| 4 | +keywords: ["Harbor", "alert integration", "webhook", "container registry"] |
| 5 | +--- |
| 6 | + |
| 7 | +Sync Harbor alert events to Flashduty via webhook for automated alert noise reduction. |
| 8 | + |
| 9 | +## In Flashduty |
| 10 | + |
| 11 | +### Create Harbor Alert Integration |
| 12 | + |
| 13 | +You can obtain an integration push URL through either of these two methods: |
| 14 | + |
| 15 | +#### Using Private Integration |
| 16 | + |
| 17 | +Choose this method when you don't need to route alert events to different channels - it's simpler. |
| 18 | + |
| 19 | +<Accordion title="Expand"> |
| 20 | +1. Go to the Flashduty console, select **Channel**, and enter a channel's details page |
| 21 | +2. Select the **Integrations** tab, click **Add Integration** to enter the integration page |
| 22 | +3. Choose **Harbor** integration and click **Save** to generate a card |
| 23 | +4. Click the generated card to view the **Push URL**, copy it for later use, and you're done |
| 24 | +</Accordion> |
| 25 | + |
| 26 | +#### Using Shared Integration |
| 27 | + |
| 28 | +Choose this method when you need to route alerts to different channels based on the alert event payload. |
| 29 | + |
| 30 | +<Accordion title="Expand"> |
| 31 | +1. Go to the Flashduty console, select **Integration Center=>Alert Events** to enter the integration selection page |
| 32 | +2. Select **Harbor** integration: |
| 33 | + - **Integration Name**: Define a name for this integration |
| 34 | +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) |
| 35 | +4. Click **Save** and copy the newly generated **push URL** for later use |
| 36 | +5. Done |
| 37 | +</Accordion> |
| 38 | + |
| 39 | +## In Harbor |
| 40 | + |
| 41 | +### Configure Webhooks |
| 42 | + |
| 43 | +1. Log in to the Harbor interface with an account that has at least project administrator privileges. |
| 44 | +2. Go to `Projects`, select a project, and select `Webhooks`. |
| 45 | +3. Select notify type `HTTP`, so the webhook will be send to a HTTP endpoint. |
| 46 | +4. Select payload format as `Default or CloudEvents` when choose the HTTP notify type. |
| 47 | +5. Select events that you want to subscribe. |
| 48 | +6. Enter the alert integration's push URL in the Endpoint URL field. |
| 49 | +7. Click Add to create the webhook. |
| 50 | + |
| 51 | +## Severity Mapping |
| 52 | + |
| 53 | +Currently, all alerts pushed to Flashduty through the Harbor integration are set to Warning severity. However, you can customize the severity using the [alert pipeline](/en/on-call/integration/alert-integration/alert-pipelines). |
0 commit comments