I want to add an alert on Google Cloud Monitoring such that, for a given topic and a subscription, I want to know if a topic is being published then subscriptions are not being acknowledged at the same or similar rate for a given time frame.
How do we achieve that using Alerts in Google Cloud Monitoring or StackDriver?
I have tried an approach where I have 2 conditions to satisfy:
Then, alert.
Whats happening here is, during low load, if there are no publishes happening say for a span of 3 minutes and a publish happens, both conditions 1 and 2 are set to be true and devs are alerted about this as failure.
So, what is the right way of designing such alerts?
If my approach is close to what I want, the next questions that come to my mind are,
Sorry for the long post. But, any kind of help is appreciated.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/0d33041e-508e-49ba-ab00-f5afa98e0126%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Google Stackdriver has detected that one of your resources has entered an alert state.
Summary: Unacknowledged Messages for user-create~history is increasing rate of 20 with a value of 0
Violation Began: 2016-10-07 17:40:11 UTC
Document:
Events are not getting acknowledged. The Unacknowledged messages are increasing at a rate of 20% for 15 minutes

Hi, Yash,Thanks for the question! Do you think alerting on the subscription "Unacknowledged Messages" metric? If this number is large or growing really fast, you are publishing faster than you are ack'ing.Kir Titievsky | Product Manager | Google Cloud Pub/Sub
On Tue, Oct 4, 2016 at 8:20 PM, Yash Narvaneni <n.yas...@gmail.com> wrote:
I want to add an alert on Google Cloud Monitoring such that, for a given topic and a subscription, I want to know if a topic is being published then subscriptions are not being acknowledged at the same or similar rate for a given time frame.
How do we achieve that using Alerts in Google Cloud Monitoring or StackDriver?
I have tried an approach where I have 2 conditions to satisfy:
- If publish operations > 0.016/sec for 2 minutes (meaning atleast one publish per minute)
- If subscribe acknowledgments < 0.001/sec for 2 minutes (If no subscribe acknowledgements happening in 2 minutes)
Then, alert.
Whats happening here is, during low load, if there are no publishes happening say for a span of 3 minutes and a publish happens, both conditions 1 and 2 are set to be true and devs are alerted about this as failure.
So, what is the right way of designing such alerts?
If my approach is close to what I want, the next questions that come to my mind are,
- Is there a way to say count your two minutes from the instance where the publish happens to see if acknowledgement condition is satisfying or not.
- Or, is there a way to make the alert to wait for 2-3 minutes to see if the incident resolves, and then send an alert to devs.
- Or, is there a way we can count the occurances of these conditions satisfying and then alert only if the occurances are more than 5 or 10 in a span of 15 minutes or something like that.
Sorry for the long post. But, any kind of help is appreciated.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsubscrib...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/0d33041e-508e-49ba-ab00-f5afa98e0126%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/0d33041e-508e-49ba-ab00-f5afa98e0126%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.