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
Hi,
Have you tried to insert metrics from other input plugins (e.g., cpu)?
Thanks,
Kyoungho
Hi ,
Yes it insert data with other input plugins.
Thanks
Ajesh
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
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
The issue is resolved. The error was because of docker influxdb-2 mounting related .
Thank you for the support.
Ajesh
Great! Thanks for the update.