Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Output extensions not detected in CLI #31

Open
realviktornedelko opened this issue Feb 7, 2024 · 0 comments
Open

Output extensions not detected in CLI #31

realviktornedelko opened this issue Feb 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@realviktornedelko
Copy link

Brief summary

When providing -o output-prometheus-pushgateway flag same output as with out-of-the-box k6 is received.

k6 version

v0.49.0

xk6-dashboard version

N/A

OS

macOS 14.2.1 (23C71)

Docker version and image (if applicable)

szkiba/k6x

Steps to reproduce the problem

@ type of preconditions were tested:

  1. Gitlab CI with image: szkiba/k6x
  2. Local install of go install github.com/szkiba/k6x@latest and even go install github.com/szkiba/k6x@latest --with github.com/martymarron/xk6-output-prometheus-pushgateway@latest

Run a script with -o output-prometheus-pushgateway flag. E.g:
k6x run dist/discovery/temp-test.js -o output-prometheus-pushgateway
or
k6x run -o output-prometheus-pushgateway dist/discovery/temp-test.js

P.S. If I run ./k6 run dist/discovery/temp-test.js -o output-prometheus-pushgateway after generating a binary locally using the bundle builder: xk6 build v0.49.0 --with github.com/martymarron/xk6-output-prometheus-pushgateway it works as expected.

Expected behaviour

Output extension is detected from command line and necessary package is involved

Actual behaviour

time="2024-02-07T09:44:24Z" level=error msg="invalid output type 'output-prometheus-pushgateway', available types are: cloud, csv, experimental-prometheus-rw, influxdb, json, statsd, web-dashboard"
@realviktornedelko realviktornedelko added the bug Something isn't working label Feb 7, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant