I setup Alert Monitoring for pubsub subscription like below:
I was expecting this to fire every 2 minutes, since the condition is met throughout.
But I got the notification only one time. I also tried with duration
1 minute. Still no luck.
What am I doing wrong here?
Or my understanding of these terms may be wrong?
What I want is: For every 2 minutes, when count of un-acked message count is > x, trigger an alert.
Note: I just masked the filter
field here, which is a subscription_id
.
Your current monitoring set up is working as intended since you only have a single time series and a single condition. As per alert notification docs:
Lastly the purpose of "Period" is to just increase the data points in the chart and is not related to triggering a notification multiple times until it is below the threshold. Thus it is not possible send continuous notifications until the monitored data is below the threshold.