Skip to content

Releases: grafana/xk6-client-prometheus-remote

v0.5.1

09 Jun 08:13
d5ad46e

Choose a tag to compare

xk6-client-prometheus-remote v0.5.1 is here!

A maintenance release on top of the k6 v2.0.0 line with security updates and a toolchain refresh. JavaScript usage is unchanged, so existing test scripts continue to run as-is.

Maintenance

  • Pinned the Go toolchain in go.mod to 1.25.11 for reproducible, security-current builds (#93).

Security

  • Updated golang.org/x/crypto to v0.52.0 (#87).
  • Updated golang.org/x/net to v0.55.0 (#88).

For the complete list of changes, see the full changelog.

v0.5.0

13 May 14:00
bdc5538

Choose a tag to compare

xk6-client-prometheus-remote v0.5.0 is here!

This release upgrades the extension to the k6 v2 line and the new go.k6.io/k6/v2 module path. It also rolls in a batch of security and dependency updates accumulated since v0.4.0, plus a project ownership transfer to grafana/k6-core and a Renovate configuration to keep dependencies current going forward.

JavaScript usage is unchanged — existing test scripts run as-is.

Highlights

k6 v2 compatibility

  • Migrated to go.k6.io/k6/v2 v2.0.0 (from go.k6.io/k6 v1.4.0 at the previous release).
  • All internal imports updated to the v2 module path (remote_write.go, bench_test.go).
  • Release and validate workflows now target k6-version: v2.0.0 via xk6-version: 1.4.1.
  • Intermediate k6 bumps along the way: v1.4.0 → v1.5.0 (#66), → v1.7.1 (#77), → v2.0.0.

Note for users building with xk6: when building a k6 binary that includes this extension, use xk6 1.4.1 (or newer) so it resolves the /v2 module path correctly.

Maintenance

  • Ownership transferred to grafana/k6-core (#83).
  • Renovate enabled to automate future dependency updates (#82).
  • Go toolchain pinned to the latest patch version for reproducible, security-current builds (#85); the module now targets go 1.25.0 / toolchain go1.25.10.
  • Fixed repository name in tsconfig.json (#63).
  • Pinned grafana/xk6 GitHub Action to a commit SHA (#64, #75).

Security

  • golang.org/x/netv0.53.0 (#84) — security update.
  • go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttpv1.43.0 (#80) — security update.
  • go.opentelemetry.io/otel/sdkv1.40.0 (#78) — security update.

Dependency updates

  • google.golang.org/protobufv1.36.11 (#73).
  • github.com/xhit/go-str2duration/v2v2.1.0 (#68).
  • github.com/grafana/sobek digest refreshed to 22d1085 (#65).
  • Transitive indirect dependencies refreshed via go mod tidy against k6 v2.0.0 (k6provider 0.5.0, otlpmetricgrpc, Azure ntlmssp v0.1.1, esbuild v0.28.0, and others).

For the complete list of changes, see the full changelog.

v0.4.0

21 Nov 17:22
6214011

Choose a tag to compare

xk6-client-prometheus-remote v0.4.0 is here!

This release brings significant improvements to code quality, security, developer experience, and bug fixes. The codebase has been modernized, tooling enhanced, and important compatibility issues addressed.

New Features

TypeScript API Declarations (#48)

Added comprehensive TypeScript type definitions (index.d.ts) providing:

  • Full IDE autocomplete support for all APIs
  • Type safety and compile-time error checking
  • Inline documentation with practical examples
  • Better developer experience in VS Code, WebStorm, and other modern editors

Developer Tooling (#57)

Added a comprehensive development environment with:

  • Makefile: Common development tasks (build, test, lint, security checks, documentation generation)
  • CONTRIBUTING.md: Complete contribution guidelines covering:
    • Code of conduct
    • Bug reporting and feature requests
    • Development workflow
    • Testing and quality standards
    • Task documentation

Comprehensive Smoke Test (#51)

Added a runtime verification test that ensures:

  • All Go exports match TypeScript definitions
  • API surface correctness across language boundaries
  • Prevention of export regressions
  • Documentation of expected behavior through executable tests

Improvements

Code Quality Enhancements (#50)

Implemented comprehensive linting with golangci-lint (40+ linters enabled):

  • Added package and function documentation for all exports
  • Reorganized code with proper function ordering (exported before unexported)
  • Modernized codebase using Go 1.22+ features (integer range loops, automatic loop variable capture)
  • Improved test infrastructure with parallel test execution
  • Enhanced error handling and context propagation
  • Fixed whitespace, formatting, and style consistency issues
  • Pre-allocated slices for better performance
  • Used standard library constants for improved maintainability

k6 v1.4.0 Support (#53)

Updated to the latest k6 version, ensuring compatibility with the newest k6 features and improvements.

Modernized Release Workflow (#55)

Replaced custom release workflow with the shared workflow from grafana/xk6, bringing:

  • Consistency with other k6 extensions
  • Streamlined release process
  • Better maintainability

Breaking Change: Docker images will no longer be created with k6 binary built with this extension. Users should use k6's Automatic Extension Resolution feature or build with xk6 locally if needed.

Security

Vulnerability Fixes (#59)

Updated golang.org/x/crypto from v0.43.0 to v0.45.0, addressing:

  • GO-2025-4135: Malformed constraint causing denial of service in golang.org/x/crypto/ssh/agent
  • GO-2025-4134: Unbounded memory consumption in golang.org/x/crypto/ssh

Bug Fixes

Label Ordering Compliance (#60)

Fixed label ordering in example scripts to comply with Prometheus/Thanos requirements:

  • Labels are now sorted alphabetically (lexicographic order after __name__)
  • Prevents 409 Conflict errors from Thanos
  • Updated examples:
    • examples/full_write_example.js
    • examples/full_read_write_example.js
    • examples/benchtool.js

Documentation

  • Added comprehensive TypeScript API documentation
  • Created contribution guidelines
  • Updated development workflow documentation
  • Added inline code examples throughout type definitions

For the complete list of changes, see the full changelog.

v0.3.2

21 Jun 13:36

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.1...v0.3.2

v0.3.1

04 Aug 18:41
dd6beba

Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.3.0

28 Jul 12:31
5e6f01e

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.4...v0.3.0

v0.2.4

13 Jan 13:41

Choose a tag to compare

Fix Host header in http req

v0.2.3

03 Nov 15:21

Choose a tag to compare

What's Changed

  • Migrated to k6 v0.41.0 #25

Full Changelog: v0.2.2...v0.2.3

v0.2.2

11 May 15:25
6511a64

Choose a tag to compare

Fixes for k6 v0.38 (#19)

v0.2.1

14 Apr 13:43

Choose a tag to compare

Bump go version in github action