0

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?

6
  • Hi @Mr. Techie, Could you check this documentation, and let me know if this helps you or not ? Commented Mar 20 at 13:10
  • @DhirajSingh I don't think we can use logs to setup alerts, since we don't have much control over the producers of the messages to the topic.
    – Mr. Techie
    Commented Mar 20 at 15:05
  • Hi, There are different options for creating an alerting policy, i.e., by using Cloud Monitoring API, the Google Cloud CLI and Terraform. Did you check these documents ? Commented Mar 21 at 8:53
  • Why does a message won't be published into a topic? Commented Mar 21 at 10:05
  • @guillaumeblaquiere The message is publishing to the topic. However, we don't have much control over the message producer. Also we can't view the topic logs.
    – Mr. Techie
    Commented Mar 21 at 11:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.