GeezerVison is showing github.com — Pubsub feature: get messages count waiting in subscription · Issue #527 · googleapis/google-cloud-node
Pubsub feature: get messages count waiting in subscription #527DescriptionHi,
I need to know how many messages are waiting in the subscription, to pop new workers or monitor the health of my system. This is something AWS SQS does too.
Is it in the roadmap actually ?
Thank you Reacted by Davin Kevin and smaspe Activitypierre-b commented on May 5, 2015 ryanseys commented on May 5, 2015 Considering it's "not accurate" I wouldn't use it yet and don't think we should support it in this library until we know it is accurate. pierre-b commented on May 5, 2015 This feature could never be accurate because messages are always flowing into the subscription (depending on the publish rate), but it's crucial to know if you need to add more workers to process messages or monitor the health of your workers. stephenplusplus commented on May 5, 2015 From https://cloud.google.com/monitoring/api/metrics, they list two interesting ones:
num_outstanding_messages: Current number of messages delivered but not yet acknowledged.
num_undelivered_messages: Current number of messages pending to be delivered.
Maybe we could open up a generic subscription.getMetrics('num_outstanding_msesages') and anything else from the list: topic.getMetrics('message_sizes'), as these may all be useful. Reacted by Robert Christian, Eric Ekong and Kosmas Papadatos stephenplusplus commented on Aug 24, 2015 Assigned this to @callmehiphop since you had some ideas for how to implement this generically. leibale commented on Dec 10, 2015 stephenplusplus commented on Dec 11, 2015 We have a few more things to implement with a higher priority before getting to this one, mostly support for the Prediction and Translate APIs, then promises. leibale commented on Dec 12, 2015 stephenplusplus commented on Dec 12, 2015 sssahas commented on Mar 31, 2017 Great to see you guys working on this already. If its worth, right now I use stackdriver's subscription metrics capabilities to get this information, apparently, stackdriver lags behind and the count is not accurate. Just wanted to add +1 to this request and happy to be a beta tester, if need be. Let me know. Reacted by Robert Christian
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|