Hide series conditionally

*hope this could help
if I were you, I would play around the query.
*Im not familiar with Cloudwatch, so I’ll just give you some logic to begin with:

treshold = 5Mb/s
*lower than 5Mb/s = unhealthy = want to show lines
*higher than 5Mb/s = healthy = no need to show lines

in the query, put if logic on it
if(series 1 < 5Mb/s then series1 else null) AS “series 1”

example


in my query I have lots of series, but in the next picture only 2 series appear in the graph

this behavior is affected by a variable called $webView at the top
and then on the next picture, multiple series appear