Send from telegraf to Influxdb on another system


How can I send data from telegraf on my system to influxdb on another system ?

I know I have to give telegraf the address of influxdb ,

  urls = ["http://localhost:8086"]

But influxdb is running on the local port on another system. We have to make it publically accessible. How can we do that ?

I did this in my influxdb.conf file,

    bind-address = ""

But that did not wwork.


@Luv is the port 8086 open on your InfluxDB instance? Assuming that it is

  urls = ["http://<your instances IP>:8086"]

should work.



abc@xyz:~$ sudo netstat -ntlp | grep influx
tcp6       0      0 :::8086                 :::*                    LISTEN      5473/influxd    
tcp6       0      0 :::8088                 :::*                    LISTEN      5473/influxd    

It is running on my instance.

The IP which I use to connect to my server is

So, when I write something like this,

  urls = [""] # required
  database = "telegraf" # required

The logs says,

2017-05-03T20:55:02Z E! Database creation failed: Post net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Why is this happening ?

Can you refer me some kind of docs for my scenario ?


Yeah I got it.

There were some issues with Firewall. I changed them after wasting a lot of time, and is now working.