Collect Hadoop Space Utilization Widget Data

Ambari.SCOM.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:

TargetAmbari.SCOM.ClusterService.Hdfs
CategoryPerformanceCollection
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

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

Source Code:

<Rule ID="Ambari.SCOM.PerformanceRule.WidgetSpaceUtilization" Target="Ambari.SCOM.ClusterService.Hdfs" Enabled="false" ConfirmDelivery="false">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Ambari.SCOM.Module.HdfsServiceMetricsDataSource">
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="Mapper" TypeID="Ambari.SCOM.Module.PropertyBagMultiplePerformanceDataMapper">
<Mappings>
<Mapping>
<PropertyName>capacitytotalgb</PropertyName>
<ObjectName>Hadoop : Dashboards</ObjectName>
<CounterName>Space Utilization</CounterName>
<InstanceName>Total</InstanceName>
</Mapping>
<Mapping>
<PropertyName>capacityusedgb</PropertyName>
<ObjectName>Hadoop : Dashboards</ObjectName>
<CounterName>Space Utilization</CounterName>
<InstanceName>Used</InstanceName>
</Mapping>
<Mapping>
<PropertyName>capacityremaininggb</PropertyName>
<ObjectName>Hadoop : Dashboards</ObjectName>
<CounterName>Space Utilization</CounterName>
<InstanceName>Free</InstanceName>
</Mapping>
<Mapping>
<PropertyName>capacitynondfsusedgb</PropertyName>
<ObjectName>Hadoop : 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>