当前带宽

Microsoft.Windows.Server.10.0.NetworkAdapter.CurrentBandwidth.Collection (Rule)

收集 Network Interface\Current Bandwidth 计数器的规则。

Knowledge Base article:

摘要

此规则收集 Network Interface\Current Bandwidth 计数器。

Current Bandwidth 是以每秒位数(BPS)估计的网络接口的当前带宽。 对于带宽不变的接口,或者对于无法准确估计的接口,此值为名义带宽。

Element properties:

TargetMicrosoft.Windows.Server.10.0.NetworkAdapter
CategoryPerformanceCollection
EnabledTrue
Instance NameNetwork Adapter
Counter NameCurrent Bandwidth
Frequency600
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.NetworkAdapter.CurrentBandwidth.Collection" Enabled="true" Target="ServervNext!Microsoft.Windows.Server.10.0.NetworkAdapter">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="PerformanceDS" TypeID="SystemPerf!System.Performance.OptimizedDataProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</ComputerName>
<CounterName>Current Bandwidth</CounterName>
<ObjectName>Network Adapter</ObjectName>
<InstanceName>$Target/Property[Type="WindowsServer!Microsoft.Windows.Server.NetworkAdapter"]/PerfmonInstance$</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>600</Frequency>
<Tolerance>10</Tolerance>
<ToleranceType>Absolute</ToleranceType>
<MaximumSampleSeparation>100</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>