7
votes

We're getting spikes from time to time but can't find what causes it.

  • How to monitor the Azure SQL DTU usage?
  • How can I find what are the high DTU queries in live?
2

2 Answers

8
votes

The following will show you a log of the 100 most recent DTU logs. As of now, a log entry is created every 15 seconds.

SELECT TOP 100 *
FROM sys.dm_db_resource_stats
ORDER BY end_time DESC