Hello,
I want to monitor Pub/Sub topic messages by filtering a certain attribute. In detail, the pubsub message is in json format, following a schema. There is one field in the message indicating the publisher client source. For the same topic, I have multiple publisher clients to publish to it, so I want to set up alert that will notify me if one client stops publishing messages to this topic.
Since if one client fails to publish, there are other clients still publishing to the topic, so total count doesn't help, I need filter by the client source field in the message. Is there anyway to do this in alert please? Appreciate any suggestion!
Hello,
I hope your having a great Friday!
From my understanding, you could possibly using the metric [1] subscription/dead_letter_message_count
which would allow to see the number of undeliverable message that Pub/Sub forwards from a subscription. From there, you can set it up as a alert to be notified when a client fails to publish.
Hope this helps!
Best Regards,
Kevin
Google Cloud Platform Support, Montreal
[1] Pub/Sub Metric: