Submit a ticketCall us

Quickly Address Software Vulnerabilities
Patch Manager is an intuitive patch management software which extends the capabilities of WSUS and SCCM to not only patch Windows® servers and workstations, and Microsoft® applications, but also other 3rd-party applications which are commonly exploited by hackers. Learn more about our patch management solution.


Home > Success Center > Database Performance Analyzer (DPA) > DPA 11.0 Administrator Guide > Alerts > Alert on increases in SQL wait times

Alert on increases in SQL wait times

Created by Anthony.Rinaldi, last modified by Anthony.Rinaldi on Sep 15, 2016

Views: 19 Votes: 0 Revisions: 6

Use the steps below to determine the average execution response time of your SQL queries, and then create an alert to warn you of significant deviations.

Determine the average execution time of your queries

  1. On the DPA home page, click a Database Instance.
  2. Select the first query from the View Historical Charts for SQL list.
  3. Scroll down to the Average Wait Time per Execution chart.

    This chart shows the average execution time for the SQL statement on each day. The black bar denotes the average wait for this query across the days in the chart.

  4. Point the cursor to each bar to see details for the day.
  5. Point the cursor to the black bar to see the baseline of average wait time for this query for all executions for the month.

    SolarWinds recommends alerting if the average wait time is twice as long as this baseline.

    For example, if the baseline of average wait time for the month is 1.5 seconds, set the alert to 3 seconds.

Identify the top three queries and estimate the typical wait time. Choose a threshold, approximately twice as long, that you will use to create alerts.

Create an alert based on the wait threshold

  1. Click Alerts > Manage Alerts.
  2. Verify Wait Time is selected as the Alert Category.
  3. Select Average Wait Time for a Single SQL from the Alert Type list.
  4. Click Create Alert.
  5. Name the alert and enter notification text.
  6. Set the Execution Interval to 10 minutes or more. This allows time for valid samples and prevents unnecessary alerts from a single slow execution.
  7. Select an Available Database Instance, and click Add.
  8. Under Alert Parameters, search for one of the three SQL queries you identified earlier.

    SolarWinds DPA always returns the hash value from a search, even when you select a named query.

  9. Under Alert Levels & Notifications, choose an alert level and enter a minimum time in seconds. This value should be twice as long as the baseline of average wait time for this query.

    The average wait time is specific to the execution interval. If the interval is 10 minutes, SolarWinds DPA looks at the average wait time for the SQL statement chosen for that 10-minute period and compares these values to your thresholds.

  10. Select a Notification Group or Contact.
  11. Click Test Alert, and verify you received the email.
  12. Click Save.
  13. Repeat steps 3 - 13 for the other two SQL queries you identified.
Last modified
13:59, 15 Sep 2016