Skip to content
Discussion options

You must be logged in to vote

Changing the framing method will change how the output in sent to the http server. Looking at the source code it looks like the array (AKA [ and ]) is only inserted into the payload if encoding is json, the framing is character_delimited and the delimiter is ,. Since you already set the batching to 1, you should be able to set the framing to newline_delimited like so (this may cause other issues but I think it should be fine. I'm pretty sure that if events were batched you'd get a jsonl style request):

sinks:
  http_output:
    inputs:
      - payload_modifier
    type: http
    uri: <grafana-url>
    encoding:
      codec: json
    framing:
      method: newline_delimited

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@poehlerflorian
Comment options

Answer selected by pront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
sink: http Anything `http` sink related
2 participants