Closed ulikl closed 4 years ago
Hello @ulikl! Have you tried following flags:
./vmctl influx --help | grep basic
--vm-user value VictoriaMetrics username for basic auth [$VM_USERNAME]
--vm-password value VictoriaMetrics password for basic auth [$VM_PASSWORD]
@hagen1778 , thanks for the hint. I have I overlooked these options. This works fine.
But the missing error message is really confusing. Could you improve the error handling?
Right! The errors are usually processed and returned to user during the import. In current case the number of series was so small that it "fit" the importer buffers and process exited before reading it. In commit https://github.com/VictoriaMetrics/vmctl/commit/36b96a8accf43d66b67319228e565033d6be99c9 this issue should be addressed. Thanks for reporting!
Hi @hagen1778 thank you very much, the request error is shown now immediately.
...
Found 5 timeseries to import. Continue? [Y/n] Y
2020/08/05 09:37:32 Import process failed:
test1_value{id="1",x="2",db="migtest"} for timestamps range 1595578136075 - 1595578136075
test2_w{id="1",x="2",db="migtest"} for timestamps range 1595578161760 - 1595578161760
test_influxline_field2{tag1="value1",tag2="value2",db="migtest"} for timestamps range 1593184 - 1593184
with error: import request error for "http://127.0.0.1:8428": unexpected response code 401:
I would like to import data into a VictoriaMetrics instance, which is secured by by basic auth. I'm missing a flag to set the username and password.
The HTTP Url encoding of basic authentication doesn't work on any Victoriametrics URL, so the import in currently not possible.
Additionally the Victoriametrics error message is not displayed, only the stats are empty. e.g.