I am working with Influxdb version 2.0 and wanted to connect kafka consumer leagcy plugin with it.I wanted to know that how should I configure this configuration file of kafka consumer legacy and which path to place it on a server/local machine and also how to make sink connector for influxdb 2.0 as InfluxDB Sink Connector for Confluent Platform doesnot support for this version As came to know from the link below:
Does Confluent’s InfluxDB Sink Connector work with InfluxDB 2.0?
The configuration file for kafka consumer legaccy is given below:
# Read metrics from Kafka topic(s)
[[inputs.kafka_consumer]]
## topic(s) to consume
topics = ["telegraf"]
## an array of Zookeeper connection strings
zookeeper_peers = ["localhost:2181"]
## Zookeeper Chroot
zookeeper_chroot = ""
## the name of the consumer group
consumer_group = "telegraf_metrics_consumers"
## Offset (must be either "oldest" or "newest")
offset = "oldest"
## Data format to consume.
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "influx"
## Maximum length of a message to consume, in bytes (default 0/unlimited);
## larger messages are dropped
max_message_len = 65536