Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Show estimated cost of k6 cloud run before starting and wait for prompt confirmation #3735

Closed
StianOvrevage opened this issue May 9, 2024 · 1 comment
Assignees

Comments

@StianOvrevage
Copy link

Feature Description

We want to use k6 for running some distributed load tests.
However it's not immediately intuitive how much a test is going to cost.

Without this it feels very risky for me as a developer to run tests not knowing if I step on a land-mine that will trigger a $10000 bill and get me in trouble. I will probably end up spending a day or two replicating Grafana Cloud (the parts I need) and distributing some load tests my self with 100% confidence and control of costs. But I would rather spend that time on other stuff.

Suggested Solution (optional)

I propose a new flag to k6 cloud (--prompt / --confirm?) that before starting a test will display the estimated cost in VUhs AND dollars and a Y/n to continue.

You do have the logic to calculate VUh for a test with stages since that is visible in Grafana Cloud WebUI. So it should not be that much work making that available on the command line, and await a confirmation before starting the test. (I did append -p to k6 cloud for starting test in paused mode. But that did not appear to have any effect).

Already existing or connected issues / PRs (optional)

No response

@joanlopez
Copy link
Contributor

Closing as it clearly looks as a duplicate of #3733

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants