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

How can I specify the content-type of a multi-part/form field?

I’m trying to post a multipart/form request like so: const baseUrl = 'https://api-int.nmlv.nml.com/v1/aca-cip/documents'; const params = { headers: { 'Content-Type': ''multipart/form-data",...

View Article


Maximum limit for maxDuration and duration if any

Hello team, I would like to know the maximum limit that can be given to maxDuration and duration if any. 1 post - 1 participant Read full topic

View Article


Cloud Browser Testing: Save Screenshots

Here is a really simple script for k6 browser testing. export const options = { scenarios: { browser: { executor: "constant-vus", exec: "browserTest", vus: 10, duration: "60s", options: { browser: {...

View Article

Is it possible to set the K6_PROMETHEUS_RW_options via config file instead of...

I’m wondering if the K6_PROMETHEUS_RW_* options can be set via code/config file instead of passing them as environment options in the same way that other options can be set? I see from the...

View Article

In script vs config options discrepancy

Hi folks. I need another dozen pairs of eyes. in a script I’m using hand crafted options. in script options export let options = { scenarios: { peak_get_ents: { // peak scenario name executor:...

View Article


How to perf-test a Dapr-ized gRPC API using k6?

(topic deleted by author) 1 post - 1 participant Read full topic

View Article

K6 browser set allow-scripts permission

We ran some tests using k6 browser and we got the following error multiple times: ERRO[0009] Blocked script execution in ‘about:blank’ because the document’s frame is sandboxed and the ‘allow-scripts’...

View Article

Want to obtain individual transaction response time time

I am new to K6. I have the following script and I want to get the individual response time. import http from "k6/http"; import { check, sleep, group } from "k6"; export let options = { stages: [ {...

View Article


Reading data from a shared Array

Hi, I have one json file in the below format, { "Product1" : [ {"model":"xxx","mof":yy}, {"model":"xxx", "mof":zz} ] "Product2":[ {"model":"xxx","mof":yy}, {"model":"xxx", "mof":zz} ] } In the K6...

View Article


K6 custom resource. kind : TestRun vs K6

Hi, When creating a k6 custom resource to run my tests on Kubernetes I see some examples using different values for kind. k6-operator/config/samples at main · grafana/k6-operator · GitHub What is the...

View Article

Grafana OSS Vulnerability - Need Fix For latest v10.4.1

Looking for the vulnerability fix for the latest OSS v10.4.1 and below are the CVE IDs CVE ID Compliance ID Type Severity Packages Source Package Package Version CVE-2023-6992 46 OS medium zlib...

View Article

K6 Operator unable to spawn starter and test pods

K6 Initializer pod is complete but starter or test pods are not spun up. On looking at the controller manager logs i seee the following error: 2024-06-13T17:53:46Z INFO controllers.TestRun...

View Article

Is it possible to send data to InfluxDB without using xk6 extensions?

Hi guys, so the K6 documentation recommends that we use xk6 binary to build k6 with extensions. However, I’m finding it difficult to make this happen due to our corporate proxy. While I did specify...

View Article


V0.0.14 TestRun property "spec.paused" not behaving as expected

Using k6-operator v0.0.14, I create a TestRun resource with property “spec.paused” = “true”. Unexpectedly, the operator seems to ignore this property setting and instead executes the TestRun to...

View Article

How do you stop the running load test when the websocket disconnects and show...

import ws from ‘k6/ws’; import { check } from ‘k6’; export let options = { insecureSkipTLSVerify: true, noConnectionReuse: false, stages: [ { duration: ‘1s’, target: 100 }, //simulate ramp-up of...

View Article


Pass Variable from one function to another

New to K6, for benchmarking my http request I am using K6 in my pipeline. Now here is my code I have two section first am creating an user and second am trying updating the same user import http from...

View Article

Is it possible to listen to all HTTP request / response of k6 Browser?

Hello community, I need to execute log in on my webpage using k6 browser and get access_token and refresh_token as response from “…/oauth2/v2.0/token” endpoint. Is it possible to listen to all HTTP...

View Article


Image may be NSFW.
Clik here to view.

Enforcing Strong Password Policy in Grafana v11.0

Hi all, While the latest Grafana version (v11.0) offers the “Strong password policy” feature, it seems user passwords aren’t automatically forced to change if they don’t meet the new criteria. For our...

View Article

Ethereum Signing/Keccac 256/ECDSA support

Hi, I am trying to implement something like this: The k6 load test script takes as input the following: Ethereum wallet details <key pair, wallet address> Signs a random message M with the...

View Article

Need help on upload file scenario

Hi, I am trying to upload a file (API Call) and using the multiform data example. Here, I have few parameters to be passed in variables. So based on the example I created res =...

View Article
Browsing all 328 articles
Browse latest View live