newrelic-quickstarts
newrelic-quickstarts copied to clipboard
Dashboard: Incorrect Aggregate function in AWS ALB UnHealthyHostCount
Here is the link to the problematic code
https://github.com/newrelic/newrelic-quickstarts/blob/release/dashboards/aws-alb/aws-alb.json#L99
Description
The current implementation of the count aggregation function returns the number of data points when used with metrics of type summary. As a result, it invariably leads to a count greater than 1.
This could mislead users into thinking there are UnHealthy targets when, in reality, there may be none.
For UnHealthyHost metrics, a min = 0 is returned when targets are healthy, and a min < 0 is observed for unhealthy targets. Given this behavior, utilizing the min aggregation function instead of count would be more appropriate.
Switching to the min function would ensure the accurate representation of health states, eliminating any risk of user confusion regarding the existence of UnHealthy targets.