收集 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>