Skip to content

Commit c1a3ba8

Browse files
committed
in_prometheus_remote_write: use new http server api to set max buffer size
Signed-off-by: Eduardo Silva <[email protected]>
1 parent f79a4ad commit c1a3ba8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/in_prometheus_remote_write/prom_rw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ static int prom_rw_init(struct flb_input_instance *ins,
126126
return -1;
127127
}
128128

129+
flb_http_server_set_buffer_max_size(&ctx->http_server, ctx->buffer_max_size);
130+
129131
ctx->http_server.request_callback = prom_rw_prot_handle_ng;
130132

131133
flb_input_downstream_set(ctx->http_server.downstream, ctx->ins);

0 commit comments

Comments
 (0)