Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

v0.0.7

Choose a tag to compare

@codebien codebien released this 01 Dec 16:43
· 86 commits to main since this release

What's Changed

Experimental Native Histogram - #57

Prometheus from v2.40.0 adds as an experimental feature a new histogram metric type called Native Histogram supporting dynamic buckets. It can be enabled by the feature flag --enable-feature=native-histograms.

Setting the K6_PROMETHEUS_TREND_AS_NATIVE_HISTOGRAM=true environment variable enables the support for flushing k6 Trend metrics as Native Histograms.

The Grafana dashboard in grafana folder has been updated for supporting the Native Histogram time series. Thanks @jwcastillo.

Trend stats changes

The Trend classic mapping with Counters / Gauges has been updated. The specific stats to generate from each Trend metric are now configurable via the K6_PROMETHEUS_TREND_STATS environment variable. It follows the same syntax already used by the k6's Summary Trend Stats option. The default set includes only the 99th percentile.

Naming convention

When possible the mapping applies the best practices as suggested by Prometheus:

  • Counter-type metrics are mapped including the _total suffix in the name.
  • Trend-type metrics when the value type is defined then the mapping includes the specific base unit for Time (seconds) or Data (bytes) values. e.g. k6_http_req_duration_seconds (native histogram) / k6_http_req_duration_seconds_p99 (stats).
  • Rate-type metrics are mapped with the _rate suffix for better clarity.

Removed setting options directly from the CLI

Setting the Output's options directly from the CLI defining the text string is not available anymore. We may re-introduce this functionality in the future based on a batter and shared protocol between all the k6's Outputs.

New Contributors

Full Changelog: v0.0.6...v0.0.7