Google PubSub - Counting messages in topic

前端 未结 3 1898
滥情空心
滥情空心 2020-12-06 00:33

I\'ve looked over the documentation for Google\'s PubSub, and also tried looking in Google Cloud Monitoring, but couldn\'t find any means of figuring out what\'s the queue s

3条回答
  •  无人及你
    2020-12-06 01:07

    The metric you want to look at is "undelivered messages." You should be able to set up alerts or charts that monitor this metric in Google Cloud Monitoring under the "Pub/Sub Subscription" resource type. The number of messages that have not yet been acknowledged by subscribers, i.e., queue size, is a per-subscription metric as opposed to a per-topic metric. For info on the metric, see pubsub.googleapis.com/subscription/num_undelivered_messages in the GCP Metrics List (and others for all of the Pub/Sub metrics available).

提交回复
热议问题