influxdata/influxdb-relay

Error in sending data from Telegraf to Influxdb-relay

Opened this issue · 1 comments

Hi,

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:-

[[outputs.influxdb]]
urls = [“http://172.29.29.12:9096/write”]

But the issue is Telegraf is not able to write to Influxdb-relay I am getting error as “Database creation Failed: post http://172.29.29.12:9096/query?q=CREATE 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

you can prevent telegraf from sending "create database" requests:

[[outputs.influxdb]]
  skip_database_creation = true
  ...

see https://github.com/influxdata/telegraf/tree/master/plugins/outputs/influxdb