How to execute tests in my own repo through the Docker compose set-up for InfluxDB and Grafana

I want to execute some tests in my tests repo using the Docker compose set-up which i described on Grafana dashboards. In the example they execute a test which is within a directory of that repo which is GitHub - grafana/k6: A modern load testing tool, using Go and JavaScript - and the test being at path /samples/scripts/es6sample.js Is there any way that I can do that? So if my tests where in my user directory on my Mac and in a folder called “my-k6-tests” for example.

Hi, welcome to the forum.

Yes, that command is just an example. You can replace the $PWD/samples host path with your own directory. For example:

docker-compose run -v \
    $PWD/my-k6-tests:/tests \
    k6 run /tests/mytest.js

See the bind mounts and osxfs documentation.

Related to this topic, why I can’t see any value render in error per second chart.

I am using 10660 Grafana template

Query as below

SELECT count(“value”) FROM “errors” WHERE $timeFilter GROUP BY time($__interval) fill(none)

@xyngfei That’s not really a related question :), but see this other answer for details: No data in Grafana(req_blocked, error per second) - #2 by imiric