Metrics install automatically if you have SQL Monitor installed.
If you are using Redgate’s SQL Server monitoring tool, SQL Monitor, you can instantly install and run this metric on your servers.
This metric measures the percentage of used space for transaction log files (LDF files). You’ll find this useful if your SQL Server has limited capacity, so you need to maximize existing disk space utilization by minimizing unused space. It will also alert you if the percentage of used space exceeds the specified thresholds.
It is best practice to pre-allocate the size of the transaction log file whenever you create a new database. This reduces or eliminates the need for autogrowth, which may lead to physical file fragmentation. The size of the file will depend on the number of transactions you expect, and how often you intend to backup the transaction log.
For information on managing your transaction log, see Understanding Logging and Recovery in SQL Server. For details of how to shrink the size of your transaction log, see Recover from a full transaction log in a SQL Server database.
This metric can be used in conjunction with virtual log file monitoring, particularly if you’re using log reader for replication.Percentage of used log space,
Percentage of used log space
This metric measures the percentage of used space for transaction log files (LDF files).
The T-SQL query that will collect data
Instances to collect from
Databases to collect from
Use collected or calculated values
Leave the Use a calculated rate of change between collections check box unchecked
Free log space decreased
Raise an alert when the metric value goes
Above the defined threshholds
Default threshold values
Raise an alert when the threshold is passed for