We're having trouble with the reliability of our SQL Azure database , and in an effort to see if we are consuming excessive resources I tried to view our stats records. MSDN offers some initial guidance on querying sys.resource_stats
Our sys.resource_stats view returns no records at all.
If I try to view the monitoring in the Azure portal, I get an error that the server could not retrieve metrics.
We have no idea why this view would not return any records or how to fix it.
There is known issue that causes this telemetry not to be displayed. A fix for this issue is beeing roll-out.
You can query the sys.dm_db_resource_stats in the database itself (not master) to get the utilization data for the last hour. This view also has the advantage of showing finer granular data than sys.dresource_stats in master.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.