MSSQL 2012: Collect DB Disk Free Space (MB)

Microsoft.SQLServer.2012.Database.DBDiskFreeSpaceMB.Collection (Rule)

SQL 2012 DBs Disk Free Space (MB) performance collection rule

Knowledge Base article:

Summary

DB Disk Free Space (MB) for SQL 2012 DB

Overrideable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

Yes

Interval (seconds)

The recurring interval of time in seconds in which to run the workflow.

900

Timeout (seconds)

Specifies the time the workflow is allowed to run before being closed and marked as failed.

300

Element properties:

TargetMicrosoft.SQLServer.2012.Database
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2012.Database.DBSizeRaw.DataSourceMapped Microsoft.SQLServer.SQLProbeAccount
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2012.Database.DBDiskFreeSpaceMB.Collection" Enabled="true" Target="SQL2012Core!Microsoft.SQLServer.2012.Database">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2012.Database.DBSizeRaw.DataSourceMapped" RunAs="SQL!Microsoft.SQLServer.SQLProbeAccount">
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<CounterName>DB Disk Free Space (MB)</CounterName>
<CounterKey>DBDiskFreeSpaceMB</CounterKey>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>