-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Measure average batch byte size and event count #18000
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
Merged
andsel
merged 36 commits into
elastic:main
from
andsel:feature/average_metric_byte_size_event_count
Sep 23, 2025
+805
−45
Merged
Changes from 31 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
19d7e2e
Instantiated metric 'pipelines.<pipeline id>.batch.count' to count nu…
andsel 4ec8189
Exposed just the lifetime value for a flow metric computed using tota…
andsel dcb8543
Instantiated metric 'pipelines.<pipeline id>.batch.total_bytes' to su…
andsel e633d3a
[Code clean] Removed unused code
andsel ad8a829
Added RubyNil in the list of class types that estimateMemory can work…
andsel 42e266a
Refact: used the BYTES constant for each Java scalar type
andsel d9c841a
Added RubySymbol and RubyFloat to the list of class types that estima…
andsel 8fc8398
[Test] added integration test to verify monitoring API return expecte…
andsel 5929104
Introduced 'pipeline.batch.metrics' to manage the way queue reader cl…
andsel fdb7648
Implemented logic to use in batch metrics creation and exposure
andsel 91196f8
[Test] Extracted common part of test code in test initializer method
andsel a7e3a7f
[Log] added the batch metric sampling value on pipeline start
andsel fa873d3
Changed event_count metric to use a specific event counter of batch f…
andsel 5ae12f6
[Refact] Extracted batch metric initialisation in separate method
andsel 8fd2bcc
[Minor] Fixed import and removed dev comments
andsel e2f440c
[Fix] Used Byte.BYTES constant for Bytes size in bytes
andsel e57f7be
[Refactoring] Separated batch's metrics code in its own class
andsel 1bf7650
Renamed setting to manage the collection type from pipeline.batch.met…
andsel e6938f5
Rename setting to pipeline.batch.metrics.sampling_mode and the value …
andsel 7608486
Updated estimate memory of a batch to log an error if one of any even…
andsel 7a0a2c2
Fixes after rebase to main
andsel 1d0d3b4
[Fix] Avoid to increment batch counts for empty batches
andsel d2e481f
[Test] Covered QueueReadClientBatchMetrics with tests
andsel d82ed1f
[Cleanup] Inverted condition to improve readability
andsel e5ec911
[Fix] Avoid to update batch and total event counter if we encouter an…
andsel 2deae4c
Round bytes_size and event_count per batch to integers because float …
andsel 5179c56
Fixes after reabse to main to pull Settings builder
andsel ea69549
Fixed failing API tests after switching to settings builder
andsel 1e68d32
[Refactoring] extracted common code in method to decode string settin…
andsel 666e95b
Fixed constructor of JRubyWrappedAckedQueueExt to retrieve batch metr…
andsel 324922a
[Test] Covered monitoring API response with test
andsel 166f3fa
[Refactoring] Removed batchMetrics mode from PQ settings and passed a…
andsel a71ff25
[Refactoring] Introduce create method in JrubyWrappedSynchronousQueue…
andsel 5b971b3
Minor, removed commented code
andsel f2e85ee
Fix, avoid to invoke a round on possible nil content. In case the bat…
andsel affee72
Switched default batch mode to minimal
andsel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.