1

Using Telegraf plugins, there is a way to read data from InfluxDb and publish it to a Kafka topic.

But is there a way to read the data on demand and place it on a Kafka topic? Like a query based demand.

I can do a query based read through REST API (curl GET).

There are HTTP Listener plugins but these are only for POST methods. None for GET method where I can query a subset of data from InfluxDb and place them on a Kafka topic. In this case, kafka would be the output plugin.

darkDragon
  • 455
  • 3
  • 12
R10
  • 33
  • 6

1 Answers1

1

You can achieve it using Kapacitor's Kafka event handler. Kapacitor can be configured either in batch mode or streaming mode. In case of streaming mode, if the condition met for processing, Kapacitor event handler will process the record immediately and send to Kafaka cluster. Please refer here for more details.

Steephen
  • 14,645
  • 7
  • 40
  • 47