Alerts for Failed Queries in Databricks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 02:32 AM
How can we set up automated alerts to notify us when queries executed by a specific service principal fail in Databricks?
- Labels:
-
Workflows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2024 05:45 AM
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 09:27 PM
@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?

