Hyper-V 2012 R2 - Virtual Processors

QND.Hyperv2012R2.HypervisorVirtualProcessors.Rule (Rule)

Hypervisor Virtual Processors Count

Element properties:

TargetMicrosoft.Windows.HyperV.2012.R2.ServerRole
CategoryPerformanceCollection
EnabledTrue
Instance NameHyper-V Hypervisor
Counter NameVirtual Processors
Frequency3600
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource System.Performance.OptimizedDataProvider Default
CollectToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
CollectToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="QND.Hyperv2012R2.HypervisorVirtualProcessors.Rule" Target="Hyperv2012R2!Microsoft.Windows.HyperV.2012.R2.ServerRole" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Perf!System.Performance.OptimizedDataProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>Virtual Processors</CounterName>
<ObjectName>Hyper-V Hypervisor</ObjectName>
<InstanceName/>
<AllInstances>false</AllInstances>
<Frequency>3600</Frequency>
<Tolerance>0</Tolerance>
<ToleranceType>Absolute</ToleranceType>
<MaximumSampleSeparation>1</MaximumSampleSeparation>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="CollectToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="CollectToDW" TypeID="MSDL!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>