This rule collects processor utilization for the windows service.
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.
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:
Set the Enabled property to True for the Windows Service.
Set the Frequency property to the value specified by the user in the Windows Service template.
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.
Target | Microsoft.SystemCenter.OwnProcessNTService |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
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 |
<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>