Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
cosmo0920
force-pushed
the
cosmo0920-mitigate-unbudgeted-decoding-for-out_promehteus-remote-write
branch
from
December 3, 2026 08:33
f264884 to
8d104e8
Compare
Import CMetrics commits 69b2085, ae56f52 and 3888610. Bound protobuf and model allocations and decode complete time series in batches. Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
cosmo0920
force-pushed
the
cosmo0920-mitigate-unbudgeted-decoding-for-out_promehteus-remote-write
branch
from
December 3, 2026 08:49
8d104e8 to
8b7424e
Compare
This branch was previously deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
It records the three upstream CMetrics commits
69b2085,ae56f52, and3888610. All 13 Fluent Bit commits retain DCO sign-offs and passed commit-prefix lint. The tip8b7424ef5has the same file tree as the tested and benchmarked build.What changed
Fluent Bit can now accept a Prometheus remote write request larger than one decode batch. CMetrics splits it at complete time-series boundaries and resolves metadata even when it appears after the series. The receiver stages split batches in a temporary file and admits the entire request as one queue event. If a later series is malformed or too large, or the queue is full, earlier batches from that request are discarded.
max_decode_allocation_sizesets the per-batch budget.max_request_decode_allocation_sizebounds cumulative decoding across batches, andhttp_server.max_decoded_body_sizelimits the decoded HTTP body. [Configuration guide](/home/cosmo/Documents/GitHub/fluent-bit-dev/plugins/in_prometheus_remote_write/README.md)Measured peak RSS
Each run sent the same 2,348,096-byte decoded node-exporter payload to a fresh Linux receiver. Values are median process peak RSS across three runs per cell. The output drained the expected batch count in all 24 runs.
For this payload,
1Mreduced peak RSS by about 54% for both encodings compared with64M. Reducing the budget further to256Kincreased the batch count from 35 to 135 and saved another 0.2 MiB for raw input and 1.5 MiB for gzip. Split requests also use temporary-file space.Verification
All 25 CMetrics tests and 5 focused Fluent Bit internal tests passed. All 19 receiver integration cases passed normally in 122.09 s and under strict Linux Valgrind in 161.88 s. The live tests verified that accepted raw, gzip, and Snappy requests delivered each sample once and that rejected requests delivered no staged prefix.
This PR is depending on fluent/cmetrics#320.
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-testlabel 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.