Open CoffeeHi opened 1 month ago
Hi @CoffeeHi,
I'm sorry, but we don't have large expertise with the k6-operator. So, let me transfer it to its specific repository, so any of its maintainers can try to help with this 🙇🏻
Hi @CoffeeHi, sorry for the delay! Are you trying to find one dashboard per test with aggregated data from all runners? Or are you trying to open a dashboard to one, specific runner and configuration does not work?
Hi @yorugac , I want to open a dashboard to one, as I known from https://grafana.com/docs/k6/latest/results-output/web-dashboard/ , I can get a runtime dashboard running K6_WEB_DASHBOARD=true k6 run script.js
locally, how can I do this using k6-operator in k8s cluster?
Hi @CoffeeHi, it appears that you have already passed the dashboard option to the runners successfully:
runner:
env:
- name: K6_WEB_DASHBOARD
value: "true"
K6_WEB_DASHBOARD_OPEN
makes no impact here because you're running k6 in a container: it isn't supposed to have access to your browser. But you can port-forward to any runner's dashboard with this:
kubectl port-forward pod/k6-sample-1-g4tnf 5665
And then open the dashboard in your browser just as you do with k6 standalone, that is by going to http://127.0.0.1:5665/
.
Each runner will have its own dashboard.
Let me know if additional information is needed!
Hi guys, I deploy k6 operator in k8s cluster, but I don't know how to show K6_WEB_DASHBOARD when running TestRun CR, is it possible to show K6_WEB_DASHBOARD in distributed mode k6? I have tried in TestRun CR, but does not work.