newrelic-quickstarts icon indicating copy to clipboard operation
newrelic-quickstarts copied to clipboard

Dashboard: Incorrect Aggregate function in AWS ALB UnHealthyHostCount

Open falcon-tech opened this issue 10 months ago • 0 comments

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.

SCR-20240405-scbs

This could mislead users into thinking there are UnHealthy targets when, in reality, there may be none.

SCR-20240405-sdfm

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.

SCR-20240405-sduz

falcon-tech avatar Apr 05 '24 12:04 falcon-tech