cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Alerts for Failed Queries in Databricks

AcrobaticMonkey
New Contributor II

How can we set up automated alerts to notify us when queries executed by a specific service principal fail in Databricks?

2 REPLIES 2

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @AcrobaticMonkey,

How are you triggering the queries using a service principal, is it through a workflow job? If so then you can use Job notifications.

I would need more details but one possible solution is to implement Alerts:

https://docs.databricks.com/en/sql/user/alerts/index.html

AcrobaticMonkey
New Contributor II

@Alberto_UmanaOur service principal uses the SQL Statement API to execute queries. We want to receive notifications for each query failure. While SQL Alerts are an option, they do not provide immediate responses. Is there a better solution to achieve near-real-time failure notifications?