Google PubSub - Counting messages in topic

前端 未结 3 1897
滥情空心
滥情空心 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:17

    The answer to your question is "no", there is no feature for PubSub that shows these counts. The way you have to do it is via log event monitoring using Stackdriver (it took me some time to find that out too).

    The colloquial answer to this is do the following, step-by-step:

    1. Navigate from GCloud Admin Console to: Monitoring

    1. This opens a new window with separate Stackdriver console
    2. Navigate in Stackdriver: Dashboards > Create Dashboard

    1. Click the Add Chart button top-right of dashboard screen

    1. In the input box, type num_undelivered_messages and then SAVE

提交回复
热议问题