'k6: connect test outputs to influxdb v2 from kubernetes pods

I'm using a Minikube setup for testing. On Minikube I have a App, the InfluxDB v2 and the k6 sample pods to test my App. Now I want to collect the test data in the InfluxDB. When I'm using k6 locally I would use the k6 code local to connect to the InfluxDB v2. Is it possible to embed the xk6-influxdb code (and binary) into my normal k6 test script? Is there another solution for my problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source