I was trying to create an alert for messages not getting published to pubsub topic.
Usecase: if message are not getting published for 10mins trigger an alert
Problem:
- Although the job producing messages to pubsub topic runs from late saturday night to early sunday morning but we are not sure about the duration of this job run. It depends on incoming data volume.
- We also don't have much control over the logs of the topic involved.
Thinking out loud solution: use topic/send_request_count
and trigger alert if response code!=success
So is there a way to handle this scenario using metrics available in google pubsub, topic?