-
SQL Server Restart Alert
database-restart.jpg DPA has a base alert named Database Availability that will notify you if an instance is down. However, alerts can only execute at most once per minute, and if an instance goes down briefly with an immediate restart, the alert can miss the downtime. This new custom alert will let you know anytime a SQL…
-
SQL Server Free Disk Space Alert using PowerShell
disk_space_ps.sqlAlerting on free disk space for your SQL Server instance is not a base alert within DPA. This is because the information is not readily available from within the database instance via a query. However, using xp_cmdshell and a PowerShell command, we can add a custom alert to DPA to handle this. Note: the…
-
Sessions Blocking for More Than X Minutes
session_blocking_time.jpgWhen it comes to blocking, DPA can currently alert when the cumulative blocking time goes beyond a threshold. The alert can be found under the category of Wait Time and is named Total Blocking Wait Time. However, one drawback to alerting on cumulative blocking time, is that it can potentially be…
-
Postgres Long Running Queries
Long Running Queries_PostfreSQL.sql Description It's important to identify and investigate if there are any long running queries in your PostgreSQL database(s). These long running queries may interfere in overall database performance and could be the result of a stuck background process. This alert…