I need to following information from SQL monitor captured performance metrics
ssh4478
Posts: 8 Bronze 1
Hello,
I need to capture following details from SQL monitor metrics (backend tables/views) for specific duration:
Count
Duration(Total,min,max)
CPU(Total/Avg)
Reads(Total/Avg)
Writes(Total/Avg)
for all the Queries executed on the databases between certain time.
I need to use the above information to calculate a figure which will give us more info at the troubled time.
Is it something possible and if you can offer any help with it
I need to capture following details from SQL monitor metrics (backend tables/views) for specific duration:
Count
Duration(Total,min,max)
CPU(Total/Avg)
Reads(Total/Avg)
Writes(Total/Avg)
for all the Queries executed on the databases between certain time.
I need to use the above information to calculate a figure which will give us more info at the troubled time.
Is it something possible and if you can offer any help with it
Tagged:
Answers
We don't support directly querying the repository at the moment and the schema is liable to change with any update. The date you are talking about there is the information from the Top Queries section on the server overview page when you click into the SQL instance and you can sort the table there by the various columns to get a different table sorted by that value (rather than just reordering the same list of queries). You can also drill into each database at the bottom of the server overview and see the Top Queries list specific to each database.
Having said that, if the above doesn't help, these views may help you find the data in the repository (The DECOMPRESS function is from SQL 2016 I believe, otherwise you'd need to find a way to unzip it via a SQL CLR function I believe).
Alex
Have you visited our Help Center?
The stable samples are only recorded if the value has changed, the unstable samples are recorded at each sample regardless. So the different names are a comment on how likely the data is to be volatile and how to interpret the data in the table.
Kind regards,
Alex
Have you visited our Help Center?