Quantcast
Channel: Grafana k6 - Grafana Labs Community Forums
Browsing all 360 articles
Browse latest View live

Setting up a PersistentVolume to run test

Hi, I would like to Setting up a PersistentVolume to run test. I am geting the following error: level=error msg="The moduleSpecifier "/test/test.js" couldn’t be found on local disk. Make sure that...

View Article


Ramp up VUs immediately to handly 50000 test users which have to be scheduled...

I have a test scenario in which my testdata is stored in a database and based on the coloumn time_to_send i will be sending the request. I am using function setTimeout() to simulate this behavior and...

View Article


Unable to start chrome on Jenkins docker container with k6-browser test

Hello team, I am trying to run k6-browser test on a Jenkins instance which is in docker container. The test is failing on starting chrome step with error:...

View Article

Image may be NSFW.
Clik here to view.

RPS gaps and SUT's strange behavior

SUT: HAProxy (as balancer) WSO2 APIM (as API gateways)(one as a control-plane and 4 as gateways) microservice (written in Golang) in k8s CentOS-7 as a host OS for servers that runs HAProxy and WSO2...

View Article

Creating random bursts of load?

I’m looking for some advice on the best way to achieve the following load test What we are looking to get is some random bursts of traffic to a specific api endpoint whilst maintaining a constant load...

View Article


Inserting Ids generated by individual VUs to an array

Hi, I am trying to do the following: VU’s are extracting Ids of interest from the database record I want the Ids from individual VUs to be pushed to an array I want to do further operations on the...

View Article

K6 Browser: Using .locator() on a found element gives error "Object has no...

In Playwright I could find an element, and then use that to find and use sub-elements, example: A row of cells some just text, some actionable such as a combo box with selectable options that I want...

View Article

Can I use a variable in a threshold and page tag?

I have a switch statement that selects one of about 20 APIs, can I configure a threshold with a variable and then the tag on the request parms to send a value for the threshold http_req_duration....

View Article


Fufh the day I was wondering if you have any questions or need any help you to

Thug life is a good morning sir I am in the exam will be conducted on Sunday the day I was wondering if you have any questions or need any help you to 1 post - 1 participant Read full topic

View Article


Http asynchronous request in K6 load testing

Since I have asynchronous API call in my front-end, I have used http.asyncRequest method for API calls. const response = await http.asyncRequest(“GET”, url, null, params); However, I want the response...

View Article

Single Iteration only for 100 users not working as expected

Hi all! I want to perform a test where 100 VU will perform only one iteration each. I couldn’t manage to achieve it using the following configurations: 1. export const options = { vus: 100, duration:...

View Article

Image may be NSFW.
Clik here to view.

TestRun is not initializing - No initializing pod found yet

Reconcile(); stage = {“namespace”: “default”, “name”: “k6-sample”, “reconcileID”: “68b7bcb6-bd99-4f31-8967-aad21fdb879c”} │ │ -09-30T13:30:45Z INFO controllers.TestRun Initialize test {“namespace”:...

View Article

When clicking something to open a new tab I get a GO Error

//Load new page from address console.log('stop5') const address = await page.locator('[href="Link to new site I only use this for the locator)"]'); await address.waitFor({ state: 'visible', timeout:...

View Article


Max Number of Vus not matching with number of pods

Hi all, I am using k6 oss via operator in k8. I initilize the test with parallelism 4 and emitting metrics to influx. Here is my options while setting up load test : export const options = {...

View Article

Is there any way to customise the metrics output with --out...

Hello, We’re running some longer tests and as expected, they produce a lot of metrics. I’m wondering if it is possible to customise what is output as part of the --out flag, to just include...

View Article


How to run a k6 script that works onprem using k6 oss to work in the k6 cloud...

i have a complex script that works in k6 oss but I am unable to get it to work in the k6 cloud. i bundle’d it using the archive feature and get the following error… k6 cloud archive.tar Command...

View Article

Image may be NSFW.
Clik here to view.

K6_http_req_duration_$quantile_stat Metrics are the Same Across Quantiles for...

I’m facing an issue with Grafana when using k6 to send trend metrics with the $quantile_stat method. We’re using the older method of sending metrics where the trend quantiles (like...

View Article


Image may be NSFW.
Clik here to view.

Discrepancy Between k6 Console Output and Grafana Dashboard for p90/p95 Metrics

I am using the k6 Prometheus dashboard with the remote write option to send quantile metrics (min, max, p90, p95, p99). I’m having trouble matching the API request duration metrics from the local k6...

View Article

Requests failed is 1/s constantly for a ramp of up to 500 rps without a...

I am trying to understand what the web dashboard in k6 shows and what it means. I am having trouble understanding the failure rate metric. I have the following script: import { check } from 'k6';...

View Article

K6 typescript monorepo setup with custom libraries and tree-shaking

Hey! I’m trying to achieve something like this: Have a monorepo with various testing projects (e.g. both e2e and k6 tests) Have a common typescript library that will share common query constants...

View Article
Browsing all 360 articles
Browse latest View live