收集 Windows Server 2008 操作系统中的 Processor\\% Processor Time 性能计数器
此规则收集 Windows Server 2008 操作系统中的 Processor\% Processor Time 性能计数器的性能数据。
Processor\% Processor Time 性能计数器显示处理器执行非闲置线程的已用时间百分比。 它是通过测量采样间隔期间活动的闲置线程的持续时间减去间隔持续时间计算而来的。 (没有其他线程准备运行时,每个处理器都有占用时钟周期的空闲线程)。 此计数器是处理器活动的主要指示器,显示在采样间隔期间观察到的忙时间的平均百分比。 通过监视服务处于非活动状态的时间,然后从 100% 中减去该值,即可计算出它。
Target | Microsoft.Windows.Server.2008.Processor |
Category | PerformanceCollection |
Enabled | True |
Instance Name | Processor |
Counter Name | \% Processor Time |
Frequency | 300 |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
PerformanceDS | DataSource | System.Performance.OptimizedDataProvider | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.Windows.Server.2008.Processor.PercentProcessorTime.Collection" Enabled="true" Target="Server2008!Microsoft.Windows.Server.2008.Processor">
<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>$Target/Property[Type="WindowsServer!Microsoft.Windows.Server.Processor"]/PerfmonInstance$</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>