vsphere-influxdb-go icon indicating copy to clipboard operation
vsphere-influxdb-go copied to clipboard

Error posting into VictoriaMetrics

Open maxkushnir opened this issue 4 years ago • 1 comments

Hi. As VictoriaMetrics has an Influx connector and a possibility to store Influx data, I tried to add VictoriaMetrics host ( "Hostname": "http://ip:8480/insert/0/influx/write") instead of InfluxDB ( "Hostname": "http://ip:8086"). Unfortunately, I got two issues:

  1. Random port assigning for DB.
  2. Issue with parsing of address /insert/0/influx/write. Log example: Starting vsphere-influxdb-custom with config file /etc/vsphere-influxdb-custom.json Successfully connected to Influx Connecting to vcenter: esxi-xxxxxxx.xxx Setting up query inventory of vcenter: esxi-xxxxxxx.xxx remoteAddr: "xxxxxxx:42454"; cannot parse path "/write": cannot find {prefix} Connecting to vcenter: esxi-xxxxxxx Setting up query inventory of vcenter: esxi-xxxxxxx.xxx remoteAddr: "xxxxxxx:42468"; cannot parse path "/write": cannot find {prefix}

Can you help with it?

maxkushnir avatar Mar 15 '21 14:03 maxkushnir

Try removing /write suffix from the url: http://ip:8480/insert/0/influx. It looks the /write suffix is automatically added by the client before sending the metrics to the given url.

valyala avatar May 03 '21 13:05 valyala