-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add log which will report dropped log count #9752
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
base: master
Are you sure you want to change the base?
Add log which will report dropped log count #9752
Conversation
|
Hi @makasim, |
|
@SamarthBagga Can you please update PR with the solution proposed by @Haleygo in the issue? The suffix one. |
|
Please add a changelog. |
|
@Haleygo I have made the suggested changes, could you have a look at it again? |
| if dropped > 0 { | ||
| format = fmt.Sprintf("%s. Similar %d log messages were throttled", format, dropped) | ||
| } | ||
| dropped := lt.dropped.Swap(0) |
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.
The Similar xxx message should be added only if dropped > 0.
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.
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.
LGTM
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #9752 +/- ##
==========================================
- Coverage 60.37% 55.79% -4.58%
==========================================
Files 411 529 +118
Lines 76609 67364 -9245
==========================================
- Hits 46253 37589 -8664
+ Misses 27794 27396 -398
+ Partials 2562 2379 -183 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@Haleygo A lint check was failing so I updated the PR with the fix for that. Do I need to sign all the commits I have already made? Could you approve the PR again to run the workflows? |
Yup, all the commits must be signed, see https://docs.victoriametrics.com/victoriametrics/contributing/#pull-request-checklist.
|
e02c557 to
050c3ac
Compare
|
@Haleygo Could you suggest a way to sign commits that were already made? I tried a few things, but they were causing some strange issues? |
I think the simplest approach now is to drop all previous commits and have all changes in a single new commit, since your latest commit is signed, indicating the configuration is correct now. |
22b666b to
5bb67a7
Compare
109d04f to
c5c4a74
Compare
Co-authored-by: Hui Wang <haley@victoriametrics.com>
|
@Haleygo I have signed the commits, could you have another look? |
Describe Your Changes
I have added a counter for the throttled logs which gets logged every 1 minute.
Fixes #9498
Checklist
The following checks are mandatory: