This metric will display the percentage of queries on the server that are ad-hoc queries. A high percentage of ad-hoc queries can indicate that an application is running queries that are not properly parameterized. Read more
Uses Server and database audit to track SELECT statements. First Create a Server audit: [crayon-5dd7d2bc8cbe2521209934/] Then a database specific Audit based on this server audit: (in this case on the Database: WideworldImporters, schema “Sales” and table: “Customers” [crayon-5dd7d2bc8cbe8015527292/] Then setup the custom metric: Read more
This metric reports the total space used by database files in GB. This includes data files but excludes log files. This lets you track the growth of the databases over time so you can be aware of future space requirements. Alternatively, the following T-SQL can be used for SQL Server 2012 and higher: [crayon-5dd7d2bc8cf2e613964962/] Read more
This metric returns the number of non-Microsoft modules loaded into the SQL Server address space. Having a lot of modules loaded into the address space can cause performance issues in SQL Server. This metric lets you keep an eye on how many modules you have, other than those created by Microsoft. Thanks to Nicolaas Botes for […] Read more
What are custom metrics?
The SQL Monitor custom metric feature lets you run T-SQL queries against your SQL Servers to collect specific data. You can analyze and receive alerts about your custom data just like everything else SQL Monitor collects.
But what if you don’t want to write your own queries? No problem. Redgate has brought together a range of quality custom metrics for you to use in SQL Monitor, which are all are free, tried and tested. You can install straight away, and use the resources on this site to help you write your own.
This custom metric measures the total database file size (data files and log file combined). An increase in this metric signals that a database was grown. When not done by the DBA, this is an autogrow. Excessive autogrow events should be prevented as this can result to file fragmentation. Try to manually grow files before […] Read more
This metric will display the total number of active backups and restores on a server. This can be used to correlate with other metrics to explain why disk IO and CPU usage could have changed. Read more