Hyper-V 2016 및 1709 이상 가상 머신 하드 드라이브 사용 중인 공간 백분율 수집 규칙

Microsoft.Windows.HyperV.DiskPartitionSpaceProvider.UsedSpacePercCollectionRule (Rule)

Hyper-V 2016 및 1709 이상에서 가상 머신 하드 드라이브 사용 중인 공간 백분율을 수집합니다.

Knowledge Base article:

요약

이 규칙은 Hyper-V 2016 및 1709 이상에서 가상 머신 하드 드라이브 사용 중인 공간 백분율을 수집합니다.

Element properties:

TargetMicrosoft.Windows.HyperV.Discovery.VirtualMachine
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.HyperV.DiskPartitionSpaceProviderDataSourceModuleV2 Default
PerfMapper ConditionDetection System.Performance.DataGenericMapper Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default

Source Code:

<Rule ID="Microsoft.Windows.HyperV.DiskPartitionSpaceProvider.UsedSpacePercCollectionRule" Enabled="onEssentialMonitoring" Target="HVDisc!Microsoft.Windows.HyperV.Discovery.VirtualMachine" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.HyperV.DiskPartitionSpaceProviderDataSourceModuleV2">
<IntervalSeconds>3600</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="PerfMapper" TypeID="SystemPerf!System.Performance.DataGenericMapper">
<ObjectName>Virtual Hard Disk</ObjectName>
<CounterName>Used Space Percent</CounterName>
<InstanceName>$Data/Property[2]$</InstanceName>
<Value>$Data/Property[3]$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SCLib!Microsoft.SystemCenter.CollectPerformanceData"/>
</WriteActions>
</Rule>