Kafka output error

#1

Hi, I see below error while sending big JSON metrics to Kafka output

Error writing to output [kafka]: FAILED to send kafka message: kafka server: Message was too large, server rejected it to avoid allocation error.

After increasing message.max.bytes for the topic, we can produce big message if “max.request.size” set in producer, but could not find any parameter in telegraf kafka output.

#2

Hi, do we have any way to pass more kafka options?