I have a requirement to create an alerting policies when there are 30 connection timeout exceptions.We are currently throwing exception when there is connection timeout during a web service call(consuming restful webservices) so i want to get alerts when there are like 30 connection timeout exceptions. Is there any way i can create such policies in Stakdriver.We are currently using java8, spring boot, google kubernetes engine, stackdriver logging. I've created the metric called SAX-Exception an When i'm trying to create the stackdriver alert policies for this metrics i don't see any option to aggregate the number of exception over a period of time.
This below image shows how the metrics is defined




