I'm trying to add a cloudwatch alarm which is triggered if the error rate experienced by a lambda passes a certain percentage threshold.
I've seen a few places that suggest taking the lambda error count and the lambda invocation count and using the metric math to do error count / invocation count.
That approach makes sense but what's the difference between doing that manual calculation above and using the average statistic for errors?