jacob
jacob

Reputation: 2896

Need help configuring condition for Stackdriver alert

I want to create a Stackdriver alert that trips when a certain logging metric occurs less than 20 times in the previous 30 minutes. I don't really need history over long periods of time for graphs or anything, i.e., I don't want to store data for a long time. I just want the alert over the prior 30 minutes.

I've created the logging metric, but need help configuring the Stackdriver Alerting condition. I'm not sure what to see for Group By, Aggregation, etc.

Upvotes: 0

Views: 393

Answers (1)

jacob
jacob

Reputation: 2896

I'm not sure if this is the best answer, but I ended up doing Aligner:sum, Reducer:sum, Alignment Period:30 minutes, and trigger if below 20 for most recent value. It seems to work.

Upvotes: 1

Related Questions