vsphere-influxdb-go
vsphere-influxdb-go copied to clipboard
Error posting into VictoriaMetrics
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:
- Random port assigning for DB.
- 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?
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.