Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error posting into VictoriaMetrics #105

Open
maxkushnir opened this issue Mar 15, 2021 · 1 comment
Open

Error posting into VictoriaMetrics #105

maxkushnir opened this issue Mar 15, 2021 · 1 comment

Comments

@maxkushnir
Copy link

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?

@valyala
Copy link

valyala commented May 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants