Mini DBA Web Monitor Custom Alerts


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
You may want to be alerted when either a performance aspect of SQL Server that is not covered by existing Mini DBA alerts or a condition in your application's database is met. This is where custom sql alerts can help you.
They run SQL that you define which returns either a boolean or numeric value. This query is run every minute and will raise the alert if a condition you specifiy is met.

Clicking the "Create Custom SQL Alert" button on the alert configuration screen will open the custom sql alert window.
Mini DBA Web Monitor custom sql alert

The options and description tabs are the same as a regular alert - allowing setting thresholds, enabling sending emails and writing to the Windows event log etc.

The Custom SQL tab allows you to give your new alert a name, specify if it is returning a boolean or numeric value and set the SQL itself.

You can hit the "Test SQL" button to immediately run the query on the current servers connection.

Don't forget that you can potentially lock items in the database so using "NOLOCK" SQL statements and any other technique to avoid locking your application is strongly advised.