Telegraf plugin with influxdb2 version

7 posts / 0 new
Last post
Offline
Last seen: 1 month 1 week ago
Joined: 03/24/2022
Posts: 8
Telegraf plugin with influxdb2 version

Hi,

I'm using dds_consumer telegraf(inputs.dds_consumer) for consume dds data and trying to insert this data into influxdb2.1 version using telegraf outputs.influxdb_v2 plugin. However, data insertion in influxdb2 is failing with following error.

shapes-telegraf | 2022-04-06T19:55:00Z E! [agent] Error writing to outputs.influxdb_v2: Post http://localhost:8086/api/v2/write?bucket=metrics&org=company: dial tcp 127.0.0.1:8086: connect: connection refused

[note: the token is already configured in the telegraf config file]

I used https://github.com/rticommunity/telegraf repository for making docker container.

However, i could able to successfully insert dds data into influxdb1.x version using dds_consumer plugin with outputs.influxdb telegraf plugin.

Wondering is anybody successfully inserted dds data into influxdb2 using dds_consumer plugin along the influxdb output plugin?

Thanks

 

 

Organization:
Offline
Last seen: 1 month 2 weeks ago
Joined: 05/23/2013
Posts: 59

Hi,

Have you tried to insert metrics from other input plugins (e.g., cpu)?

Thanks,
Kyoungho

Offline
Last seen: 1 month 1 week ago
Joined: 03/24/2022
Posts: 8

Hi ,

Yes it insert data with other input plugins.

Thanks

Ajesh

Offline
Last seen: 1 month 1 week ago
Joined: 03/24/2022
Posts: 8

I did some more investigation on this issue and noticing that the isssue is happening only in docker container based environment. But other input plugins are works fine with docker based environemnts. And this dds telegraf pugin is works fine without docker container.

Thanks

Ajesh

Offline
Last seen: 1 month 2 weeks ago
Joined: 05/23/2013
Posts: 59

Hi Ajesh,

Can you try to run your docker container with host network?

https://community.rti.com/kb/how-use-rti-connext-dds-communicate-across-docker-containers-using-host-driver

Thanks,
Kyoungho

Offline
Last seen: 1 month 1 week ago
Joined: 03/24/2022
Posts: 8

The issue is resolved. The error was because of  docker influxdb-2 mounting related .

Thank you for the support.

Ajesh

Offline
Last seen: 1 month 2 weeks ago
Joined: 05/23/2013
Posts: 59

Great! Thanks for the update.