0

I'm using Victoria Metrics as a metric storage. I would like to use VM rather than using InfluxDB

In this case I just port forwarded to my VM port then run;

k6 run --out influxdb=http://127.0.0.1:8480/k6 click_performancetest.js --http-debug="full"

However when I do it, getting this;

requestURI: /write?consistency=&db=k6&precision=ns&rp=; cannot parse path "/write": cannot find {prefix}\n" output=InfluxDBv1

Is there any blog, article or suggestion for using Victoria metrics using k6 with rather than using InfluxDB?

Thanks in advance

Berkay Kirmizioglu
  • 1,134
  • 1
  • 11
  • 23
  • Is Victoria Metrics compatible with InfluxDB or why do you expect `influxdb=http://your-victoria-metrics-server/k6` to work? I don't see Victoria Metrics in . There's an open GitHub issue about adding more external outputs: – knittl Sep 17 '22 at 07:32

1 Answers1

2

It is likely you run cluster version of VictoriaMetrics instead of single-node VictoriaMetrics. The cluster version of VictoriaMetrics has different urls for data ingestion because of multitenancy support - see these docs for details. That's why you need to send data from k6 to the url like http://vminsert:8480/insert/0/influx/write .

valyala
  • 11,669
  • 1
  • 59
  • 62