Telegraf: sending different topics from kafka.consumer to different database

Hi guys, thanks in advance.
I need to do the following:

  1. consume a topic “topic A” from a group of kafka brokers [list of broker], sending them to influxdb as database “db A”
  2. consumer a nother topic from another group of kafka broker, sending them to the same influxdb as database “db B”

how can I set up telegraf.conf to do the above? Can I do this using one telegraf service?

1 Like

I have the same question. I’d like to send OS metrics to one DB, and application metrics to another.It doesn’t look like this is possible with Telegraf? Is is common practice to setup two telegraf services, one the same host?

You can do this with measurement filtering, here is an example using namepass/namedrop.

Thank you so much :heart: for the :running_man: reply!