How to run K6 through docker with influx and Grafana

I am trying to execute my k6 tests with docker-compose and then visualise the results in grafana. I have tried editing the command given in the documentation but I keep receiving errors and I am struggling to understand the pattern needed for the command. I want to run the test.js file in the screenshot below:

Hi @eoin,
Can you provide a bit more information:

  • what you are actually running and from where (directory inside this tree)?
  • what does it say when it doesn’t work?
  • what OS and k6 version you are running?

Hi mstoykov,

I managed to find the problem yesterday. It was a problem with the volume section in my docker-compose.yml file. The tests now run and can be visualised in grafana. Thanks for responding.