-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some operation details to gcplog doc #3351
Conversation
|
||
Sometimes you may have to check how much logs you are writting to the pubsub topic (mostly for cost estimation). | ||
|
||
These messages stays in Pubsub Subscription till its acknowledged. Following command just removes those log messages without having it to be consumed via promtail or any other pubsub consumer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these alternatively be configured via a TTL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. we do have message-retention-duration for the specific subscription. But it usually be 7 or 10 days in production. And we can change of course during creation of the subscription.
But this operation steps is to inform there is another way to clear those messages rather than waiting till message-retention-duration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just looked and you already have that retention config covered in the doc. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few nits then LGTM
Co-authored-by: Owen Diehl <ow.diehl@gmail.com>
Co-authored-by: Owen Diehl <ow.diehl@gmail.com>
Co-authored-by: Owen Diehl <ow.diehl@gmail.com>
What this PR does / why we need it:
Add some operation steps to gcplog doc
Which issue(s) this PR fixes:
NA
Special notes for your reviewer:
Checklist