I am having trouble passing statsd arguments to k6 docker image running on kubernetes

Hi,
I have succesfully managed to run k6 docker image in kubernetes as a kubernetes job.
In my kubernetes job yaml file it work fine if i pass only the run command along with the script name…
args: [ “run”, “/etc/k6-scripts-folder/testK6Script.js” ]

But I want to configure statsd which will output metrics to datadog and when i change the arg to include the following it fails…
args: [ “run”, “–out”, “statsd”, “/etc/k6-scripts-folder/testK6Script.js” ]

when i pass these extra arguments --out statsd it starts failing to create a container?

Am i missing something or is this a limitation when we use docker k6 image.

Hi @Kesavan,

when i pass these extra arguments --out statsd it starts failing to create a container?

Can you post the error you get?

Also, I would expect that it will fail while running instead of during creation as that is when this should be executed :thinking: . Can you provide more info please, the error as mentioned above, maybe the whole file you are changing ?