hi, can i monitor my Airbyte jobs through webhooks...
# ask-ai
b
hi, can i monitor my Airbyte jobs through webhooks ? For Example: Syning is happening at the background, does AIrbyte provide any webhooks to emit events there, if my sync job got failed, or got completed. i want to know the status of job at real time through webhook notifications ?
✅ 1
k
Yes, Airbyte allows you to monitor your sync jobs in real time using webhook notifications. You can configure Airbyte to send notifications to any generic webhook service when important events occur, such as when a sync job succeeds or fails. For each sync event (success or failure), Airbyte sends a webhook payload containing detailed information about the job, including workspace, connection, source, destination, job ID, start and finish times, record and byte counts, error messages (if any), and status. This enables you to programmatically track the status of your jobs and trigger downstream actions or alerts as needed. Here’s an example of a webhook payload 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"     } }
You can set up these webhook notifications in the Airbyte UI under Settings > Notifications, where you provide your webhook URL and select which events you want to be notified about. This setup allows you to receive real-time updates on job status and take action accordingly. For more details and payload examples, see the official documentation: [Configure Webhook Notification Settings](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/manage-airbyte-cloud-notifications#configure-webhook-notification-settings)