處理器的處理器時間百分比: Windows Server 2016 及更新版本

Microsoft.Windows.Server.10.0.Processor.PercentProcessorTime.Collection (Rule)

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

Knowledge Base article:

摘要

此規則會收集 Processor\% Processor Time 效能計數器的效能資料。

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

Element properties:

TargetMicrosoft.Windows.Server.10.0.Processor
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
PerformanceDS DataSource Microsoft.Windows.Server.10.0.Processor.Performance.ModuleType Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.Windows.Server.10.0.Processor.PercentProcessorTime.Collection" Enabled="true" Target="ServervNext!Microsoft.Windows.Server.10.0.Processor">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="PerformanceDS" TypeID="Microsoft.Windows.Server.10.0.Processor.Performance.ModuleType">
<CounterName>% Processor Time</CounterName>
<ObjectName>Processor</ObjectName>
<InstanceName>$Target/Property[Type="WindowsServer!Microsoft.Windows.Server.Processor"]/PerfmonInstance$</InstanceName>
<Frequency>300</Frequency>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>