-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
input_chunk: fix input plugin metrics not counting records re-emitted by filters downstream #9487
input_chunk: fix input plugin metrics not counting records re-emitted by filters downstream #9487
Conversation
* move metrics collections before applying filters. Signed-off-by: Gabi Davar <[email protected]>
Should this be targeting the |
@patrick-stephens not sure how backporting works in the project. Typically master is first followed by backport PRs. |
Yup, just trying to understand if this affects just 3.0.1 or more widely. I think you need to tick the backport checkbox then as well and ideally provide the related PRs for those backports. |
This affects 2.2.0+. 2.1.10 was the last version without this bug. |
checking on this |
This bug was introduced by me in #8223 and #8229. Because of the way the The reason I did that at the time was that this commit ac4ec1f at a glance looked like metrics were supposed to be recorded after writing to the input chunk. However that was a mistaken interpretation on my part at the time, and the important detail was that metrics were recorded before filters were applied. Thank you @mindw for catching this, sorry for the inconvenience. |
Approving the PR is the extent of my authority, it's up to maintainers from here. |
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.
Makes sense.
thanks everybody |
move input metrics collections before applying filters.
Fixes #8729
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.