Distinct metrics output using --out json
I have created a metric/Trend. When using the --out json and --iterations 4, I see my metric 4 times as expected. However, how do I correlate each with a specific iteration? 1 post - 1 participant...
View ArticleUnable to upload .png image in K6
Hello Grafana Community, I hope this message finds you well. I’m reaching out for assistance regarding an issue I’ve been facing with K6 while trying to upload an image file. I have the following...
View ArticleK6 runners fail on high rps
Hi all, I am able to run load test via k6 operator for smaller loads ie rps however when i try to run for larger rps and high number of parallelism i see failures in load test jobs with error Job has...
View ArticleIs my below Load test script with stages is correct?
I am new to K6 Load test, below is the snippet of my load test using stages. Is it correct? I want to start from 1 vu and then increase to 200 and then to 0. Also, what would be the command to execute...
View ArticleLocator multiple elements returned for selector query
try { await page.locator('button.bp-button').click(); // await page.locator('button.bp-button[name='Login']").click(); } catch (error) { console.log("error:" + error); exec.test.abort(); } returns...
View ArticleTesting a single api with different payload
Hi Team, I need to create a test with k6 to assess the performance of an API endpoint using ten different types of payloads. Additionally, I want to establish a threshold for each payload type. How...
View ArticleK6 Percentile Metric to Open Telemetry
Is there a way to include the http_req_duration percentile (e.g., 95pct) metric to an Open Telemetry collector using the xk6-output-opentelemetry? I’m using the otel/opentelemetry-collector-contrib...
View ArticleSuccesfully have a Synthetic Test
Hey, I’m investigating Grafana Synthetics and created some browser checks with the Chrome Recording and k6 DevTools. The issue I’m facing is that the script succeeded four steps of the check, which is...
View ArticleLoop in one scenario vs loop in one scenario
Hi When I have one test in scenario, I get a lot of lock errors when browser restarts: ERRO[0084] cleaning up the user data directory: remove...
View ArticleInterrupted iterations if I don't close the socket
I have a test with lot of socket connections (50K) and I intensionally want to keep the socket connection because my systeam broadcast messages and I need to test the load of that broadcast over 50k...
View ArticleHow to connect to URL:port/service in grpc
Hi, I got a little weird set up from developer as this URL: URL:80/serviceGrpc When I try to connect to this URL in k6 as: client.connect('lb-100-117-243-191.lbaas.jpe2c.dcnw.rakuten:80/subgrpc',...
View ArticleK6 gRPC script works locally but times out on staging/production environment
import grpc from ‘k6/net/grpc’; import { check, sleep } from ‘k6’; export const options = { insecureSkipTLSVerify: true, }; const client = new grpc.Client(); client.load([‘definitions’],...
View ArticleDeprecation of tlsAuth.domains
Hi, when I run k6 I get the warning message “tlsAuth.domains option could be removed in the next releases. it’s recommended to leave it empty and let k6 automatically detect from the provided...
View ArticleConfusion about the ramping-arrival-rate executor
I am following the k6 tutorial on spike testing which uses the ramping-arrival-rate executor to increase the request rate instantaneously. Here is the test definition import http from 'k6/http';...
View ArticleHow to group by url for vital metric?
Hello, Im executing k6 browser test and sending metrics to a influxdb and can select and view the vitals but when i want to group by url then there is issues since the url is not a Tag in Influxdb....
View ArticleWebSocket latency metric
I’m trying to benchmark a WebSocket echo server based on latency. My goal is to send as many messages as possible for 1 minute using X concurrent connections. I have written the following script:...
View ArticleK6 timings seem (very slow)
newly trying out k6, and there’s something i am not getting. if i run the following “test”: gdate +%s.%N ; curl <demo-url>/clients ;echo "" ; gdate +%s.%N on my mac, i get a result:...
View ArticleHow to configure extension xk6-Prometheus for distributed testing
We would like to use the xk6-Prometheus extension to make test metrics available for Prometheus. k6 is being used for distributed testing with TestRun CRD. So far, it hasn’t been possible to provide...
View ArticleConvert base64 string to bytes array
Hello, I am working on creating performance tests using K6. I wanted to convert a base64 string to a byte array but it’s not working as I am getting below error: ERRO[0002] Uncaught (in promise)...
View ArticlePostgres lock using linux and xk6-sql
I got a Postgres db in docker, API service in docker, local xk6-sql and linux xk6-sql build in azure pipelines Locally (xk6 on windows laptop and docker desktop) all requests and db queries work fine...
View Article