我正在使用 Influxdb 2.0 版并想将 kafka consumer leagcy 插件与其连接。我想知道我应该如何配置 kafka consumer legacy 的配置文件以及将其放置在服务器/本地机器上的路径以及如何将 influxdb 2.0 的 sink 连接器作为 InfluxDB Sink Connector for Confluent Platform 不支持此版本从以下链接得知:
Confluent 的 InfluxDB 接收器连接器是否适用于 InfluxDB 2.0?
kafka消费者遗留的配置文件如下:
# 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