cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks Job Failure + Service now Integration

Phani1
Valued Contributor II

Hi Team,

Could you please suggest how to raise the service now ticket, in case of Databricks job failure?

Regards ,

Phanindra

4 REPLIES 4

Phani1
Valued Contributor II

Sorry, my question might be confusing,

My question is for example I have one job which loads data / performs some transformation on delta tables, job got failed due to some issues, In databricks we have job failure notification but we want to integrate with service now.

We would like to raise a ticket in the service now system saying the job failed due to some reason  and support engineer will work on the ticket and will analyze the reasons for failing. 

Basically we would like to integrate with Databricks and service now.

Hi @Phani1, To integrate Databricks job failure notifications with ServiceNow, you can use the webhook method. This allows Databricks to send an HTTP POST request (webhook) to a designated endpoint in ServiceNow whenever a job fails. By doing so, you can automatically raise a ticket in the ServiceNow system, notifying the support engineers about the job failure, and enabling them to analyze the reasons for the failure.

 

  • Create a Custom Endpoint in ServiceNow:
  1. Create a new "Inbound REST Web Service" or "Scripted REST API" and define the endpoint URL where Databricks will send the webhook notification.

 

  • Configure Databricks Job Failure Notification:
  1. In Databricks, go to the job that you want to monitor for failures.
  2. Click on Edit Notifications to configure the job
  3. Click on Add Notification, and in Select a system destination, select a destination, and click the check box for failure job notification type to send to that destination.
  4. If itโ€™s showing  Add new system destination then click on that it will open a new tab,
  5. In that click Add Destination select Select the "Webhook" option and provide the URL of the custom endpoint you created in ServiceNow.

 

For more information about webhook you can refer to the below documentation links

https://docs.databricks.com/workflows/jobs/job-notifications.html

https://docs.databricks.com/administration-guide/workspace/settings/notification-destinations.html#a...



Swastik_Mishra
Databricks Employee
Databricks Employee

Hi @Phani1, You can use the webhook method to integrate Databricks job failure notifications with ServiceNow. This allows Databricks to send an HTTP POST request (webhook) to a designated endpoint in ServiceNow whenever a job fails. By doing so, you can automatically raise a ticket in the ServiceNow system, notifying the support engineers about the job failure, and enabling them to analyze the reasons for the failure.

 

  • Create a Custom Endpoint in ServiceNow:
  1. Create a new "Inbound REST Web Service" or "Scripted REST API" and define the endpoint URL where Databricks will send the webhook notification.

 

  • Configure Databricks Job Failure Notification:
  1. In Databricks, go to the job that you want to monitor for failures.
  2. Click on Edit Notifications to configure the job
  3. Click on Add Notification, and in Select a system destination, select a destination, and click the check box for failure job notification type to send to that destination.
  4. If itโ€™s showing  Add new system destination then click on that it will open a new tab,
  5. In that click Add Destination select Select the "Webhook" option and provide the URL of the custom endpoint you created in ServiceNow.

 

For more information about webhook you can refer to the below documentation links

https://docs.databricks.com/workflows/jobs/job-notifications.html

https://docs.databricks.com/administration-guide/workspace/settings/notification-destinations.html#a...



vkn
Visitor

Hi , Can this JSON response to Service Now be edited before being sent? What are the different ways it can be edited?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group