MSSQL 2012: 收集数据库已分配可用空间(MB)

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

SQL 2012 数据库已分配可用空间(MB)性能收集规则

Knowledge Base article:

摘要

针对 SQL 2012 数据库的数据库已分配可用空间(MB)

可替代参数

名称

说明

默认值

已启用

启用或禁用工作流。

间隔(秒)

要运行工作流的重复时间间隔(秒)。

900

超时(秒)

指定允许工作流在被关闭并标记为失败之前运行的时间。

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.DBAllocatedFreeSpaceMB.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 Allocated Free Space (MB)</CounterName>
<CounterKey>DBAllocatedFreeSpaceMB</CounterKey>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>