Nombre de threads

Microsoft.SystemCenter.NTService.CollectThreadCount (Rule)

Nombre de threads dans le service analysé.

Knowledge Base article:

Résumé

La règle collecte le nombre de threads pour le service Windows. Pour les services analysés par le modèle Service Windows, un remplacement permet de désactiver cette règle.

Element properties:

TargetMicrosoft.SystemCenter.OwnProcessNTService
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SystemCenter.NTService.RawPerfCounterProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default

Source Code:

<Rule ID="Microsoft.SystemCenter.NTService.CollectThreadCount" Target="Microsoft.SystemCenter.OwnProcessNTService" Enabled="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SystemCenter.NTService.RawPerfCounterProvider">
<ServiceName>$Target/Property[Type="Microsoft.SystemCenter.NTService"]/ServiceName$</ServiceName>
<ObjectName>Process</ObjectName>
<CounterName>Thread Count</CounterName>
<InstanceProperty>Name</InstanceProperty>
<ValueProperty>ThreadCount</ValueProperty>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
</WriteActions>
</Rule>