{"name":"Average runnable task count","description":"<p>This metric gives an idea of how many tasks are in a runnable state and trying to execute in the system concurrently.<\/p>\r\n<p>Sustained values for the <code>runnable_tasks_count<\/code> column are usually a very good indicator of CPU pressure, since it means that many tasks are waiting for CPU time. The longer the queue, and the greater the number of schedulers with requests waiting, the more stressed the CPU subsystem is.<\/p>","tsql":"SELECT  AVG(runnable_tasks_count) AS [Avg Runnable Task Count]\r\nFROM    sys.dm_os_schedulers\r\nWHERE   scheduler_id < 255\r\n        AND [status] = 'VISIBLE ONLINE';\r\n","instances":true,"frequency":600,"databases":{"mode":1},"rateofchange":false,"metricenabled":true,"alertname":"CPU pressure (avg runnable task count)","alertdescription":"<p>This alert is raised when the number of tasks in a runnable state are trying to execute in the system concurrently, which can indicate CPU pressure.<\/p>\r\n<p>The metric Average runnable task count on which this alert is based measures values for the <code>runnable_tasks_count<\/code> column. This is usually a very good indicator of CPU pressure, since it means that many tasks are waiting for CPU time. The longer the queue, and the greater the number of schedulers with requests waiting, the more stressed the CPU subsystem is.<\/p>","aboveorbelow":"above","collections":3,"alertenabled":true,"_thresholds_high":{"selected":true,"value":20},"_thresholds_medium":{"selected":true,"value":10},"_thresholds_low":{"selected":true,"value":9},"thresholds_comment":"Note: These thresholds are intended as guideline values. If they seem too high or too low for your environment, replace them with values more suited to your server performance.","targetentitytype":0}