MSSQL 2012: 收集数据库引擎线程计数

Microsoft.SQLServer.2012.DBEngine.ThreadCount.Collection (Rule)

SQL 2012 数据库引擎线程计数性能收集规则

Knowledge Base article:

摘要

MSSQL 2012: 数据库引擎线程计数

在此进程中当前处于活动状态的线程的数目。指令是处理器中执行操作的基本单位,线程是执行指令的对象。每个运行中的进程都具有至少一个线程。

可替代参数

名称

说明

默认值

缓存到期时间

指定工作流可使用的缓存中信息的最长存在时间。可以省略。

43200

已启用

启用或禁用工作流。

间隔(秒)

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

300

同步时间

使用 24 小时格式指定的同步时间。可以忽略。

00:06

超时(秒)

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

200

Element properties:

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

Member Modules:

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

Source Code:

<Rule ID="Microsoft.SQLServer.2012.DBEngine.ThreadCount.Collection" Enabled="true" Target="SQL2012Core!Microsoft.SQLServer.2012.DBEngine" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2012.DBEngine.ThreadCount.DataSourceMapped" RunAs="SQL!Microsoft.SQLServer.SQLProbeAccount">
<ServiceName>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</ServiceName>
<IntervalSeconds>300</IntervalSeconds>
<TimeoutSeconds>200</TimeoutSeconds>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<SyncTime/>
<CacheExpirationTime>43200</CacheExpirationTime>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>