GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #527

New issue
Copy link
New issue
Copy link
Closed
Closed
Pubsub feature: get messages count waiting in subscription#527
Copy link
Assignees
callmehiphop
Labels
api: pubsubIssues related to the Pub/Sub API.

Description

@pierre-b
pierre-b
opened on May 4, 2015
Issue body actions

Hi,

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

Activity

Next
  1. pierre-b commented on May 5, 2015

    @pierre-b
    pierre-b
    on May 5, 2015
    Author
    More actions

    FYI: as https://code.google.com/p/cloud-pubsub/issues/detail?id=13 told me, there is a "num_undelivered_messages" endpoint to get that metric.

  2. ryanseys commented on May 5, 2015

    @ryanseys
    ryanseys
    on May 5, 2015
    Contributor
    More actions

    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.

  3. stephenplusplus
    added
    api: pubsubIssues related to the Pub/Sub API.
    on May 5, 2015
  4. pierre-b commented on May 5, 2015

    @pierre-b
    pierre-b
    on May 5, 2015
    Author
    More actions

    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.

  5. stephenplusplus commented on May 5, 2015

    @stephenplusplus
    stephenplusplus
    on May 5, 2015
    Contributor
    More actions

    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
  6. stephenplusplus
    added
    enhancement
    on May 5, 2015
  7. stephenplusplus
    assigned
    callmehiphop
    on Aug 24, 2015
  8. stephenplusplus commented on Aug 24, 2015

    @stephenplusplus
    stephenplusplus
    on Aug 24, 2015
    Contributor
    More actions

    Assigned this to @callmehiphop since you had some ideas for how to implement this generically.

  9. leibale commented on Dec 10, 2015

    @leibale
    leibale
    on Dec 10, 2015
    Contributor
    More actions

    what about this one?

  10. stephenplusplus commented on Dec 11, 2015

    @stephenplusplus
    stephenplusplus
    on Dec 11, 2015
    Contributor
    More actions

    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.

  11. leibale commented on Dec 12, 2015

    @leibale
    leibale
    on Dec 12, 2015
    Contributor
    More actions

    @stephenplusplus if i will create a pull request, you will merge?

  12. stephenplusplus commented on Dec 12, 2015

    @stephenplusplus
    stephenplusplus
    on Dec 12, 2015
    Contributor
    More actions

    That would be great!

  13. landrito
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    Status: Acknowledged
    on Mar 7, 2017
  14. sssahas commented on Mar 31, 2017

    @sssahas
    sssahas
    on Mar 31, 2017
    More actions

    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
  15. 25 remaining items

  16. GautamSharda
    added 3 commits that reference this issue on Jan 14, 2026

    chore: add dev dependencies for cloud-rad ref docs (#527)

    9905830

    chore: add dev dependencies for cloud-rad ref docs (#527)

    03280a3

    chore: add dev dependencies for cloud-rad ref docs (#527)

    09a9001
  17. miguelvelezsa
    added a commit that references this issue on Jan 28, 2026

    fix(deps): update dependency @grpc/grpc-js to v0.6.10 (#527)

    2b746fe
  18. GautamSharda
    added 2 commits that reference this issue on Feb 2, 2026

    chore: add dev dependencies for cloud-rad ref docs (#527)

    20ec7cf

    chore: add dev dependencies for cloud-rad ref docs (#527)

    56001cc
  19. sofisl
    added a commit that references this issue on Feb 5, 2026

    fix(deps): update dependency @grpc/grpc-js to v0.6.10 (#527)

    64ce9eb
  20. sofisl
    added a commit that references this issue on Feb 17, 2026

    fix(deps): update dependency @grpc/grpc-js to v0.6.10 (#527)

    b52ad5f
  21. sofisl
    added a commit that references this issue on Feb 24, 2026

    build: ignore googleapis.com in doc link check (#527)

    0856f95
  22. GautamSharda
    added 2 commits that reference this issue on Mar 11, 2026

    fix(typo): correct typo: recieved => received (#527)

    e981ec5

    test: modernize mocha config (#527)

    db539fd
  23. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    fix(types): Include TypeScript types with module (#527)

    240f701

    fix(types): Include TypeScript types with module (#527)

    7d2772e
  24. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    fix(types): Include TypeScript types with module (#527)

    83192bc
  25. thiyaguk09
    added a commit that references this issue on May 5, 2026

    fix(types): Include TypeScript types with module (googleapis#527)

    e80ad9c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @callmehiphop
    callmehiphop

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.