Send SQL Server Alerts to Slack


Legacy Documentation

Desktop And Mini DBA Server

Legacy Documentation Home alerts analysisservicesalerts analysisservicescpu analysisservicesdashboard analysisservicesdatabases analysisservicesio analysisservicessessions azurealerts azuredatabase azuredatabasehealthcheck azureindexes azurelocks azure security azuresessions azuresql azuresqldatabase azuresqldatabasedashboard azuresqldatabases azure sql server dashboard azuretables azurewaits compare performance baseline connections cpu custom sql server alerts database database query performance databases defaulttrace dm exec query statistics xml documentation errorlog files gettingstarted healthcheck database healthcheck sql server history active history blocking history data storage history deadlocks history files history memory history viewer history waits howtoperformancetuneazuresqldatabase how to performance tune sql server how to sql server performance tuning how to sql server query tuning indexes Installation io License Support locks maintenance windows options performance history security server servergettingstarted Server Installation server memory serveroptions serversecurity servertroubleshooting sql database memory sql execution plan sql extended event sessions sql server activity sql server alert configuration sql server alerts sql server database sql server execution plan view sql server index defrag jobs sqlserverindexfragmentation sql server index fragmentation sql server index maintenance sql server live query statistics sqlserverqueryperformance sql server query performance sql server send slack alerts sql server send teams alerts sql server transaction log sql server wait statistics tables tranlog waits webmonitorconfigure webmonitorconnections webmonitorcurrent webmonitorcustom webmonitorenterprise webmonitorgettingstarted webmonitorhistoric webmonitorinstallation webmonitorio webmonitormemory webmonitoroptions webmonitoroverview webmonitorsecurity webmonitorwaits wmi
SQL Server alerts can be sent from Mini DBA to any Slack channel you choose. This can be done differently for all alert types and both minor and major priority levels depending on how active you want the channel to be.
Leveraging Slack's communication platform can help you ensure all team members have visibility into your database alerts. Once a SQL alert is in a Slack channel it can be commented on using Slack's messaging facilities.
From user feedback we know that some people like to setup all major priority SQL alerts get emailed out to team members while both major and minor alerts are sent to Slack. This keeps peoples inboxes from filling with every alert and allows browsing of all alerts by anyone on the channel.
Splitting Mini DBA SQL alerts into different Slack channels can be useful. For example having both a minor and major channel lets you only subscribe to major alerts but gives you the ability to see all minor alerts if you wish. This keeps your incoming messaging tailored to exactly how you want it.

Below is an example of the Slack channel content when Mini DBA sends it messages from it's alerts: SQL Server Slack Alerts
In the screenshot you can see that major alerts are colored red and minor alerts are orange. Alerts summaries are blue - these show how many alerts are currently active.
Also note that next to the Mini DBA logo the souce of the alert is shown, either Desktop or Server. It may be a rare occurance to see both sources on the same channel as it is likely that Mini DBA Server will be mostly used for alerting as it runs 24*7 as a service.
Finally notice in the Slack message at the bottom that not just the alert title but full details are included - in this case a memory snapshot of the SQL Server.

Configure the slack channel

Go to the options screen for either Mini DBA Desktop or Mini DBA Server

SQL Server Alert Configuration

  • Web hook url - the url of the Slack channel to write messages to
  • Channel - the channel name to be sent events
  • Username - the Slack username for Mini DBA to use
  • Send Minor Alerts - enables Mini DBA to send both major (sent by default) and minor alerts
  • Send Alert Summary - Aggregates all current alerts into a single Slack message


Configure both minor and major alerts to send to slack by using the check box in each alerts configuration: