Kafka Consumer Context cancelled error

Hi. I am using kafka consumer as input plugin and i am fetching multiple topics. I am sometimes get following error:

[inputs.kafka_consumer] Error in plugin: kafka: error while consuming topic_name/0: context canceled

Due to this telegraf is not pushing data. Can anyone explain about this error and how to resolve that.


I believe that is a message from Kafka itself that can mean that the connection is closed or that the topic/context you are reading from is now closed/shutdown.

Can you provide the Telegraf logs with --debug to understand what else is going on at the time?