Calculate error rate from two rows based on dimension

Cloudwatch math in AWS => you can use cloudwatch math also in Grafana (but that’s not a Grafana expression). Search on the forum and you will find example how. E.g.