In Flashduty
Create Harbor Alert Integration
You can obtain an integration push URL through either of these two methods:Using Private Integration
Choose this method when you don’t need to route alert events to different channels - it’s simpler.Expand
Expand
- Go to the Flashduty console, select Channel, and enter a channel’s details page
- Select the Integrations tab, click Add Integration to enter the integration page
- Choose Harbor integration and click Save to generate a card
- Click the generated card to view the Push URL, copy it for later use, and you’re done
Using Shared Integration
Choose this method when you need to route alerts to different channels based on the alert event payload.Expand
Expand
- Go to the Flashduty console, select Integration Center=>Alert Events to enter the integration selection page
- Select Harbor integration:
- Integration Name: Define a name for this integration
- Configure the default route and select the corresponding channel (after the integration is created, you can go to
Routeto configure more routing rules) - Click Save and copy the newly generated push URL for later use
- Done
In Harbor
Configure Webhooks
- Log in to the Harbor interface with an account that has at least project administrator privileges.
- Go to
Projects, select a project, and selectWebhooks. - Select notify type
HTTP, so the webhook will be send to a HTTP endpoint. - Select payload format as
Default or CloudEventswhen choose the HTTP notify type. - Select events that you want to subscribe.
- Enter the alert integration’s push URL in the Endpoint URL field.
- Click Add to create the webhook.