<@U04S8PLJWMT> Is any way to send Airbyte Failed s...
# ask-ai
j
@kapa.ai Is any way to send Airbyte Failed syncs notifications to PagerDuty?
k
Airbyte does not natively support sending notifications directly to PagerDuty. However, Airbyte can send notifications about failed syncs to any generic webhook service. If you have a PagerDuty endpoint that can accept webhook payloads, you can configure Airbyte to send failed sync notifications to that endpoint. The webhook payload for a failed sync includes detailed information about the workspace, connection, source, destination, error message, and more. Here is an example of the payload Airbyte sends for a failed sync:
Copy code
json {       "data": {           "workspace": {               "id":"b510e39b-e9e2-4833-9a3a-963e51d35fb4",               "name":"Workspace1",               "url":"https://link/to/ws"           },           "connection":{               "id":"64d901a1-2520-4d91-93c8-9df438668ff0",               "name":"Connection",               "url":"https://link/to/connection"           },           "source":{               "id":"c0655b08-1511-4e72-b7da-24c5d54de532",               "name":"Source",               "url":"https://link/to/source"           },           "destination":{               "id":"5621c38f-8048-4abb-85ca-b34ff8d9a298",               "name":"Destination",               "url":"https://link/to/destination"           },           "jobId":9988,           "startedAt":"2024-01-01T00:00:00Z",           "finishedAt":"2024-01-01T01:00:00Z",           "bytesEmitted":1000,           "bytesCommitted":90,           "recordsEmitted":89,           "recordsCommitted":45,           "errorMessage":"Something failed",           "errorType": "config_error",           "errorOrigin": "source",           "bytesEmittedFormatted": "1000 B",           "bytesCommittedFormatted":"90 B",           "success":false,           "durationInSeconds":3600,           "durationFormatted":"1 hours 0 min"       }   }
To set this up, you would need to configure a webhook notification in Airbyte and provide your PagerDuty Events API endpoint as the webhook URL. You may need to use an intermediary service (like a small serverless function or automation tool) to transform the Airbyte webhook payload into the format expected by PagerDuty, as PagerDuty's Events API expects a specific schema for triggering incidents. In summary: - Airbyte can send failed sync notifications via webhook. - You can use this to notify PagerDuty if you set up a compatible webhook endpoint or a transformation layer between Airbyte and PagerDuty. For more details on configuring webhook notifications and the payload structure, see the Airbyte documentation: [Configure Webhook Notification Settings](https://docs.airbyte.com/platform/1.7/cloud/managing-airbyte-cloud/manage-airbyte-cloud-notifications#configure-webhook-notification-settings).