Hi Community,
I see on the doc that I have to Use Graphite or Prometheus Rewrite to connect to InfluxDB V2. I’ve tried by many ways but I’m not able to do it. I keep getting messages like this :
mai 09 22:15:29 dominique-BMAX netdata[46576]: EXPORTING: failed to write data to '192.168.1.104:8086'. Willing to write 606244 bytes, wrote 110048 bytes. Will re-connect.
mai 09 22:15:39 dominique-BMAX netdata[46576]: EXPORTING: failed to write data to '192.168.1.104:8086'. Willing to write 606253 bytes, wrote 110048 bytes. Will re-connect.
mai 09 22:15:49 dominique-BMAX netdata[46576]: EXPORTING: failed to write data to '192.168.1.104:8086'. Willing to write 606229 bytes, wrote 110048 bytes. Will re-connect
Example of my config in exporting.conf:
[graphite:my_graphite_instance]
enabled = yes
destination = 192.168.1.104:8086
username = <MyInfluxDBUserName>
password = <MyInfluxDBPassword>
token = <myoken>
organization = <myorg>
bucket = <mybucket>
prefix = netdata
hostname = localhost
update every = 10
buffer on failures = 10
timeout ms = 20000
# send names instead of ids = yes
# send charts matching = *
# send hosts matching = localhost *
What am I doing wrong ? I can’t find many information about a way to do this.
When I use the same informations and do it in CLI via curl or via influx, it works :
curl --request POST "http://192.168.1.104:8086/api/v2/write?org=<myorg>>&bucket=<mybucket>>&precision=ns" --header "Authorization: Token <mytoken>" --header "Content-Type: text/plain; charset=utf-8" --header "Accept: application/json" --data-binary 'netdata,host=localhost value=123456789'
./influx write --bucket <mybucket> --org <myorg> --token <mytoken> --host http://192.168.1.104:8086 'netdata,host=localhost value=123456789'
Any help appreciated.
Thank you.
Dom