Metrics install automatically if you have Redgate Monitor installed.
If you are using Redgate’s SQL Server monitoring tool, Redgate Monitor, you can instantly install and run this metric on your servers.
This metric tracks the largest file in a database as a percentage of the maximum file size. If there are 3 files, and 2 are at 50% of the max set (max_usage in sys.database_files), and a third is at 60%, the 60% number is returned.
Metric definition
Name
Databases at 80% of max file size
Description
This metric tracks the largest file in a database as a percentage of the maximum file size. If there are 3 files, and 2 are at 50% of the max set (max_usage in sys.database_files), and a third is at 60%, the 60% number is returned.
The T-SQL query that will collect data
Instances to collect from
select all
Databases to collect from
select all
Collection frequency
1 hour
Use collected or calculated values
Leave the Use a calculated rate of change between collections check box unchecked
Metric collection
Enabled
Alert definition
Alert name
Database at 80% of max file size allowed
Description
Raise an alert when the metric value goes
the defined threshholds
Default threshold values
High: | 90 |
Medium: | 80 |
Low: |
Raise an alert when the threshold is passed for
collections
Alert is
Enabled