I have two user-defined metrics: totalCount and failedCount. I've combined them into a single stacked-bar graph on a Stackdriver dashboard. All looking good so far.
I'd like to alert if failedCount exceeds 20% of the totalCount, but I can't find a way to achieve this. The dialogue to create an alert policy only allows me to work with one metric, but I need both in order to perform the simple arithmetic.
What am I missing?