处理器时间百分比总计(Windows Server 2016 及更高版本)

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

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

Knowledge Base article:

摘要

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

Processor\% Processor Time 性能计数器显示处理器执行非闲置线程的已用时间百分比。它是通过测量采样间隔期间活动的闲置线程的持续时间减去内部持续时间计算而来的。 (没有其他线程准备运行时,每个处理器都有占用时钟周期的空闲线程)。此计数器是处理器活动的主要指示器,显示在采样间隔期间观察到的忙时间的平均百分比。通过监视服务处于非活动状态的时间,然后从 100% 中减去该值,即可计算出它。

Element properties:

TargetMicrosoft.Windows.Server.10.0.OperatingSystem
CategoryPerformanceCollection
EnabledTrue
Instance NameProcessor Information
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.10.0.OperatingSystem.TotalPercentProcessorTime.Collection" Enabled="true" Target="ServervNext!Microsoft.Windows.Server.10.0.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 Information</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>