Error while sending data from Telegraf to Influxdb-relay

Hello, I am trying to send the data from Telegraf to Influxdb-relay and from there to Influxdb i.e., Telegraf → Influxdb_relay → Influxdb. So, I have configured Influxdb-relay IP in the telegraf.conf
as follows:-

urls = [“”]

But the issue is Telegraf is not able to write to Influxdb-relay I am getting error as “Database creation Failed: post DATABASE getsockopt: connection refused

Can anyone know the solution for this. Can anyone please suggest the correct way to allow Telegraf send data to Influxdb-relay.

Any help is much appreciated. Thank you