收集 Processor\\% Processor Time 性能计数器

Microsoft.SystemCenter.HealthService.Processor.PerfCollection (Rule)

运行状况服务进程 (HealthService.exe) 上的 Process\\% Processor Time 的性能收集规则

Knowledge Base article:

摘要

此规则收集 Processor\% Processor Time 性能计数器的性能数据。

原因

本节不适用于性能收集规则。

解决方法

对性能收集规则没有可执行的解决办法,因为它们不生成状态或警报。

Element properties:

TargetMicrosoft.SystemCenter.ManagementServer
CategoryPerformanceCollection
EnabledFalse
Instance NameProcess
Counter Name\% Processor Time
Frequency300
Alert GenerateFalse
RemotableTrue
CommentHealth Service Collection Rules

Member Modules:

ID Module Type TypeId RunAs 
PerfDataSource DataSource System.Performance.OptimizedDataProvider Default
PerfWriteAction WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SystemCenter.HealthService.Processor.PerfCollection" Comment="Health Service Collection Rules" Enabled="false" Target="SCLibrary!Microsoft.SystemCenter.ManagementServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="PerfDataSource" TypeID="Performance!System.Performance.OptimizedDataProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>% Processor Time</CounterName>
<ObjectName>Process</ObjectName>
<InstanceName>HealthService</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>300</Frequency>
<Tolerance>3</Tolerance>
<MaximumSampleSeparation>20</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="PerfWriteAction" TypeID="SCLibrary!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>