xk6 will create the k6 binary in the local folder.
To learn more about how to build custom k6 versions, check out xk6.
You can configure the broker (or multiple ones), topic and message format directly from the command line parameter like this:
or if you want multiple brokers:
You can also specify the message format k6 will use. By default, it will be the same as the JSON output, but you can also use the InfluxDB line protocol for direct "consumption" by InfluxDB:
You can even modify some of the format settings such as tagsAsFields:
Here is the full list of options that can be configured and passed to the extension:
|List of brokers
|The name of the topic to be sent
|Authentication mechanism. Default none.
|Kafka User Password
|Kafka version. Default the latest
|Whether should ignore TLS verifications
|Interval of the metrics' aggregation and upload to the endpoint
|Message format. json or influxdb
|Boolean indicating to log kafka errors