Can't use xk6 after correct install

I have Go & k6 installed

Then, I want to monitoring test result in Prometheus, so I install xk6 through GO, and try to build xk6-output-prometheus-remote.

The xk6 seems to be installed successfully:

, and also under GOPATH.:

But I tried to xk6 build --with accordingly to instruction, I bo received:
zsh: command not found: xk6

Can you tell me what adjustments I should make? Or missing something?


1 Like


xk6 should be installed in your $GOPATH/bin directory. Make sure that directory is part of your $PATH environment variable.

You seem to have installed Go via asdf, and I’m not sure if that could have any conflicts, though it shouldn’t if your environment is setup correctly.