script to discover the dead pubsub subscriptions #1857
Labels
api: pubsub
Issues related to the googleapis/nodejs-pubsub API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: question
Request for information or clarification. Not an issue.
Hi there, I am currently facing an issue while attempting to discover dead subscriptions in Google Cloud Pub/Sub using Node.js scripts.
Background:
I recently set up an alert system on a Pub/Sub topic to send a notification to Slack if the backlog ever exceeds 50 messages. However, I encountered a situation where the message backlog reached over 200K messages. To address this, I am now trying to create a script that can identify and clean up dead Pub/Sub subscriptions.
Issue:
While I am not very familiar with Node.js, I attempted to create a scripts using the @google-cloud/pubsub library. Unfortunately, neither of these scripts seems to be working as expected.
script:
another:
I'd greatly appreciate your help in resolving the issues with these scripts.
Thanks a bunch for your time and assistance.
Best regards,
The text was updated successfully, but these errors were encountered: