Collect Process\\% Processor Time

Microsoft.SystemCenter.NTService.CollectPercentProcessorTime (Rule)

This rule collects processor utilization for the windows service.

Knowledge Base article:

Summary

The rule collects CPU usage for the windows service. The data collected by this rule can be viewed in the console as well as using the generic performance reports. The counter collected by this rule is Process\% Processor Time.

Configuration

By default this rule is disabled. If the service is monitored using the Windows Service template, there will be two overrides created for this rule:

Note: It is recommended to not delete or modify the two overrides described above. If you need to modify the frequency used by this performance collection rule, please use the Window Service template.

Element properties:

TargetMicrosoft.SystemCenter.OwnProcessNTService
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

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

Source Code:

<Rule ID="Microsoft.SystemCenter.NTService.CollectPercentProcessorTime" Target="Microsoft.SystemCenter.OwnProcessNTService" Enabled="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SystemCenter.NTService.Frequency.RawPerfCounterProvider">
<ServiceName>$Target/Property[Type="Microsoft.SystemCenter.NTService"]/ServiceName$</ServiceName>
<ObjectName>Process</ObjectName>
<CounterName>Percent Processor Time</CounterName>
<InstanceProperty>Name</InstanceProperty>
<ValueProperty>PercentProcessorTime</ValueProperty>
<Frequency>600</Frequency>
<ScaleBy>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/LogicalProcessors$</ScaleBy>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToWarehouse" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>