Alert team when tempdb reaches threshold

  • Can any one tell if there is a procedure to monitor tempdb periodically like in a job and alert the team when it fills up 85% of the tempdb fixed amount files.I have data files set autogrowth None.

  • You can use my script here: https://spaghettidba.com/2014/09/05/database-free-space-monitoring-the-right-way/

    It can be used in a SQL Agent job step, scheduled to run every 5 minutes (or whichever interval is appropriate for you) and send an email to you if the threshold is exceeded.

    In the script I linked, the space available threshold is set at 20 (toward the end of the script): you can set it at 15 if that works for you, but be advised that 20% is a well established best practice.

    -- Gianluca Sartori

  • Does this monitor % full of the data files since my each of 12 tempdb datafiles are set to fixed initial size 25gb and autogrowth none.

  • It groups by filegroup, sothe sum of all files in your case.

    -- Gianluca Sartori

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply