Thread Count

Microsoft.Dynamics.AX6.ManagementPack.AOS.Monitoring.PerfRule.ThreadCount (Rule)

Collects the value of the Thread Count performance counter for an AOS instance.

Knowledge Base article:

Summary

This rule collects performance data that will be used in either reporting or a view.

Causes

This section is not applicable to performance rules.

Resolutions

There is no resolution to perform for performance rules because they do not generate state or alerts.

Element properties:

TargetMicrosoft.Dynamics.AX6.ManagementPack.ClassLibrary.AOSProcessPerfCounters
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
Script DataSource Microsoft.Dynamics.AX6.ManagementPack.AOS.Monitoring.Process.PerfCountersProvider Microsoft.Dynamics.AX6.ManagementPack.ClassLibrary.AxDbReaderAccount
PerfMapper ConditionDetection System.Performance.DataGenericMapper Microsoft.Dynamics.AX6.ManagementPack.ClassLibrary.AxDbReaderAccount
CollectPerfData WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.Dynamics.AX6.ManagementPack.AOS.Monitoring.PerfRule.ThreadCount" Enabled="true" Target="MicrosoftDynamicsAX6ManagementPackClassLibrary!Microsoft.Dynamics.AX6.ManagementPack.ClassLibrary.AOSProcessPerfCounters" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="Script" RunAs="MicrosoftDynamicsAX6ManagementPackClassLibrary!Microsoft.Dynamics.AX6.ManagementPack.ClassLibrary.AxDbReaderAccount" TypeID="Microsoft.Dynamics.AX6.ManagementPack.AOS.Monitoring.Process.PerfCountersProvider">
<IntervalSeconds>1200</IntervalSeconds>
<TimeoutSeconds>180</TimeoutSeconds>
<InstancePropertyValue>$Target/Property[Type="MicrosoftDynamicsAX6ManagementPackClassLibrary!Microsoft.Dynamics.AX6.ManagementPack.ClassLibrary.AOSProcessPerfCounters"]/AOSServiceName$</InstancePropertyValue>
</DataSource>
</DataSources>
<ConditionDetection ID="PerfMapper" RunAs="MicrosoftDynamicsAX6ManagementPackClassLibrary!Microsoft.Dynamics.AX6.ManagementPack.ClassLibrary.AxDbReaderAccount" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>AOS Performance ThreadCount</ObjectName>
<CounterName>Thread Count</CounterName>
<InstanceName>$Target/Property[Type="MicrosoftDynamicsAX6ManagementPackClassLibrary!Microsoft.Dynamics.AX6.ManagementPack.ClassLibrary.AOSProcessPerfCounters"]/AOSID$</InstanceName>
<Value>$Data/Property[@Name='ThreadCount']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="CollectPerfData" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SystemCenter!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>