收集 [Processor\\% Processor Time] 效能計數器

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

處理序在健全狀況服務處理序 (HealthService.exe) 中佔處理器處理時間百分比的效能集合規則

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>