處理器處理時間總數百分比 Windows Server 2008

Microsoft.Windows.Server.2008.OperatingSystem.TotalPercentProcessorTime.Collection (Rule)

收集 Windows Server 2008 作業系統中的效能計數器 Processor\\% Processor Time

Knowledge Base article:

摘要

此規則會收集 Windows Server 2008 作業系統中 Processor\% Processor Time 效能計數器的效能資料。

Processor\% Processor Time 效能計數器會顯示處理器花費在執行非閒置執行緒所經過時間的百分比。 其計算方式是測量閒置執行緒在取樣間隔時間內處於使用中的持續時間,然後從間隔持續時間減去該時間 (每顆處理器具有閒置執行緒,在其他執行緒尚未準備好執行時,會佔用循環)。 此計數器是處理器活動的主要指示器,用於顯示在取樣間隔時間內所觀測到的平均忙碌時間百分比。 其計算方式是監視該服務處於非使用中的時間,然後從 100% 減去該值。

Element properties:

TargetMicrosoft.Windows.Server.2008.OperatingSystem
CategoryPerformanceCollection
EnabledTrue
Instance NameProcessor
Counter Name\% Processor Time
Frequency300
Alert GenerateFalse
RemotableTrue

Member Modules:

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

Source Code:

<Rule ID="Microsoft.Windows.Server.2008.OperatingSystem.TotalPercentProcessorTime.Collection" Enabled="true" Target="Server2008!Microsoft.Windows.Server.2008.OperatingSystem">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="PerformanceDS" TypeID="SystemPerf!System.Performance.OptimizedDataProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>% Processor Time</CounterName>
<ObjectName>Processor</ObjectName>
<InstanceName>_Total</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>300</Frequency>
<Tolerance>5</Tolerance>
<ToleranceType>Absolute</ToleranceType>
<MaximumSampleSeparation>12</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>