Streaming k6 results to Prometheus fails with `remote write receiver needs to be enabled with --web.enable-remote-write-receiver`.
IntermediateTroubleshootingk6 Load Testing
Answer
Likely causes → Prometheus does not accept remote write by default; the /api/v1/write endpoint returns 404 with that message.
Diagnose →
curl -s -o /dev/null -w '%{http_code}\n' -X POST http://localhost:9090/api/v1/write
Fix → Enable the receiver. In kube-prometheus-stack: prometheus.prometheusSpec.enableRemoteWriteReceiver: true. Then run:
K6_PROMETHEUS_RW_SERVER_URL=http://localhost:9090/api/v1/write k6 run -o experimental-prometheus-rw test.js
Prevent → Document the integration in the platform's load-testing guide and enable it in the shared test Prometheus.
More on k6 Load Testing
k6 prints `WARN[0030] Insufficient VUs, reached 100 active VUs and cannot initialize more executor=constant-arrival-rate scenario=steady`.AdvancedCI fails with `ERRO[0602] thresholds on metrics 'http_req_duration' have been crossed` and exit code 99.BeginnerEvery request fails with `dial tcp: lookup checkout on 10.96.0.10:53: no such host`.BeginnerMany requests fail with `request timeout` after exactly 60 seconds.IntermediateThe test starts fine, then errors switch to `dial tcp 10.96.41.12:8080: connect: connection refused`.IntermediateThe k6 load generator logs `socket: too many open files`.Intermediate