This is a influxdb(v2) output library for k6, implemented as an extension using the xk6 system.
❗ This is a proof of concept, isn't supported by the k6 team, and may break in the future. USE AT YOUR OWN RISK! |
---|
The extension in this current repo served as an example for an xk6 output tutorial, but using one or the other is up to the user. :)
To build a k6
binary with this extension, first ensure you have the prerequisites:
- Go toolchain
- Git
Then:
- Install
xk6
:
go get -u github.com/k6io/xk6/cmd/xk6
- Build the binary:
xk6 build latest --with github.com/li-zhixin/xk6-influxdbv2
To run a k6
case with this extension, first ensure you have environment variables:
- influxDBv2Url
- influxDBv2Token
- influxDBv2Organization
- influxDBv2Bucket
Then run case:
k6 run ./test.js --out influxdbv2