Healthy Host Count Metric

Amazon.AmazonWebServices.Rule.ElbMetric.HealthyHostCount (Rule)

The number of healthy Amazon EC2 instances registered with the load balancer in a specified Availability Zone.

Knowledge Base article:

Amazon Elastic Load Balancer HealthyHostCount Metric

The number of healthy Amazon EC2 instances registered with the load balancer in a specified Availability Zone. Hosts that have not failed more health checks than the value of the unhealthy threshold are considered healthy. When evaluating this metric, the dimensions must be provided for LoadBalancerName and AvailabilityZone. The metric represents the count of healthy instances in the specified Availability Zone. Instances may become unhealthy due to connectivity issues, health checks returning non-200 responses (in the case of HTTP or HTTPS health checks), or timeouts when performing the health check. To get the total count of all healthy hosts, this metric must be retrieved for each registered Availability Zone and then all the metrics need to be added together.

Units: Count

Valid Statistics: Minimum, Maximum, and Average

Element properties:

TargetAmazon.AmazonWebServices.ElasticLoadBalancerHealth
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Amazon.AmazonWebServices.MetricCollectionTimerDataSource Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Amazon.AmazonWebServices.Rule.ElbMetric.HealthyHostCount" Enabled="true" Target="Amazon.AmazonWebServices.ElasticLoadBalancerHealth" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Amazon.AmazonWebServices.MetricCollectionTimerDataSource">
<WorkFlowName>HealthyHostCountRuleTimer</WorkFlowName>
<StartTimeInSeconds>720</StartTimeInSeconds>
<IntervalTimeInSeconds>900</IntervalTimeInSeconds>
<NamespaceFilter>AWS/ELB</NamespaceFilter>
<MetricName>HealthyHostCount</MetricName>
<Unit>Healthy Host Count</Unit>
<ResourceName>LoadBalancerName</ResourceName>
<ResourceId>$Target/Property[Type='Amazon.AmazonWebServices.ElasticLoadBalancerHealth']/Id$</ResourceId>
<Period>60</Period>
<StatisticType>Average</StatisticType>
<RegionName>$Target/Property[Type='Amazon.AmazonWebServices.Component']/RegionName$</RegionName>
<ObjectName>Amazon Elastic Load Balancer</ObjectName>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>