收集效能計數器 [Processor\\% Processor Time]
此規則會收集 [Total Percent Processor Time] 效能計數器的效能資料。此資訊會收集並公開在一或多個檢視及/或報表中。
[Total Percent Processor Time] 效能計數器會顯示處理器花費在執行非閒置執行緒所經過時間的百分比。其計算方式是測量閒置執行緒在取樣間隔時間內處於使用中的持續時間,然後從間隔持續時間減去該時間。(每顆處理器具有閒置執行緒,在其他執行緒尚未準備好執行時,會佔用循環。)此計數器是處理器活動的主要指示器,用於顯示在取樣間隔時間內所觀測到的平均忙碌時間百分比。其計算方式是監視該服務處於非使用中的時間,然後從 100% 減去該值。
Target | Microsoft.Linux.RHEL.5.OperatingSystem |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Unix.WSMan.PerfCounterProvider.Filtered | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.Linux.RHEL.5.OperatingSystem.TotalPercentProcessorTime.Collection" Target="Microsoft.Linux.RHEL.5.OperatingSystem" Enabled="true" Remotable="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Unix!Microsoft.Unix.WSMan.PerfCounterProvider.Filtered">
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_ProcessorStatisticalInformation?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Processor</ObjectName>
<CounterName>% Processor Time</CounterName>
<InstanceName>_Total</InstanceName>
<InstanceProperty>//*[local-name()="Name"]</InstanceProperty>
<Value>$Data///*[local-name()="PercentProcessorTime"]$</Value>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>