Collect HDInsight Space Utilization Widget Data

Microsoft.HDInsight.PerformanceRule.WidgetSpaceUtilization (Rule)

This rule collects data required for Space Utilization widget.

Knowledge Base article:

Summary

Collects data required for Space Utilization widget.

Element properties:

TargetMicrosoft.HDInsight.ClusterService.Hdfs
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.HDInsight.Module.HdfsServiceMetricsDataSource Default
Mapper ConditionDetection Microsoft.HDInsight.Module.PropertyBagMultiplePerformanceDataMapper Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.HDInsight.PerformanceRule.WidgetSpaceUtilization" Target="Microsoft.HDInsight.ClusterService.Hdfs" Enabled="true" ConfirmDelivery="false">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.HDInsight.Module.HdfsServiceMetricsDataSource">
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="Mapper" TypeID="Microsoft.HDInsight.Module.PropertyBagMultiplePerformanceDataMapper">
<Mappings>
<Mapping>
<PropertyName>capacitytotalgb</PropertyName>
<ObjectName>HDInsight : Dashboards</ObjectName>
<CounterName>Space Utilization</CounterName>
<InstanceName>Total</InstanceName>
</Mapping>
<Mapping>
<PropertyName>capacityusedgb</PropertyName>
<ObjectName>HDInsight : Dashboards</ObjectName>
<CounterName>Space Utilization</CounterName>
<InstanceName>Used</InstanceName>
</Mapping>
<Mapping>
<PropertyName>capacityremaininggb</PropertyName>
<ObjectName>HDInsight : Dashboards</ObjectName>
<CounterName>Space Utilization</CounterName>
<InstanceName>Free</InstanceName>
</Mapping>
<Mapping>
<PropertyName>capacitynondfsusedgb</PropertyName>
<ObjectName>HDInsight : Dashboards</ObjectName>
<CounterName>Space Utilization</CounterName>
<InstanceName>Non-DFS Used</InstanceName>
</Mapping>
</Mappings>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>