Can't use xk6 after correct install

Hi,
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.:
.asdf/installs/golang/1.17.3/packages/pkg/mod/go.k6.io/xk6@v0.5.0

But I tried to xk6 build --with github.com/grafana/xk6-output-prometheus-remote accordingly to instruction, I bo received:
zsh: command not found: xk6

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

Thanks!

1 Like

Hi,

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.