Manual rules/remaps for batching/buffering? #23981
Unanswered
target-san
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello!
Vector's default implementation for opentelmetry/http sinks automatically batches JSON records into JSON array, which doesn't seem to be correct OTLP protocol. The best I could do is disable framing completely and limit max events per send to 1. Is it possible to somehow specify how batching should be performed? Or maybe there are some examples how to do manual batching via "reduce" transformer? The best I can guess is to remap events, then reduce them, then remap again into OTLP payload, then send via raw HTTP.
Thanks
P.S: Two VRL files mentioned in remap serve to first transform Rust's
tracing
JSON logs into more convenient form and then transform that form into OTLP payloads. Adding them just for completeness, though they don't affect question directlyVector Config
config.yaml:
rust-logs.vrl
otlp-payload.vrl:
Vector Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions