From da8d340719dd0f19e4165914603ba75e35474774 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Thu, 8 Jun 2023 10:52:11 +0300 Subject: [PATCH 1/2] Document metric name restrictions --- .../en/02 Using k6/02 Metrics.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/data/markdown/translated-guides/en/02 Using k6/02 Metrics.md b/src/data/markdown/translated-guides/en/02 Using k6/02 Metrics.md index 8b88d6d8f7..8d6a6e6f85 100644 --- a/src/data/markdown/translated-guides/en/02 Using k6/02 Metrics.md +++ b/src/data/markdown/translated-guides/en/02 Using k6/02 Metrics.md @@ -106,3 +106,18 @@ default ✓ [======================================] 1 VUs 00m03.8s/10m0s 1/1 In that output, all the metrics that start with `http`, `iteration`, and `vu` are _built-in_ metrics, which get written to stdout at the end of a test. For details of all metrics, refer to the [Metrics reference](/using-k6/metrics/reference/). + +### Metric name restrictions + +
+ +In the future metrics names will be further limited to comply with Open telemetry and Prometheus limitations. + +That will mean that metric names can be 1 to 63 symbols of ASCII letters, numbers and `_`. And must not start with a number. + +
+ +At the moment a metric name can be 1 to 128 symbols of: +1. any Unicode Letters +2. any Unicode Number +3. `.`, `_`, ` `, `!`, `?`. `/`, `#`, `(`. `)`, `<`, `>`, `%` and `-` From 833a15915ad73dcd5b4f2009779009081b4eb84b Mon Sep 17 00:00:00 2001 From: Mihail Stoykov <312246+mstoykov@users.noreply.github.com> Date: Mon, 12 Jun 2023 11:07:52 +0300 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Oleg Bespalov --- .../markdown/translated-guides/en/02 Using k6/02 Metrics.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/markdown/translated-guides/en/02 Using k6/02 Metrics.md b/src/data/markdown/translated-guides/en/02 Using k6/02 Metrics.md index 8d6a6e6f85..47e0dc0c66 100644 --- a/src/data/markdown/translated-guides/en/02 Using k6/02 Metrics.md +++ b/src/data/markdown/translated-guides/en/02 Using k6/02 Metrics.md @@ -111,13 +111,13 @@ For details of all metrics, refer to the [Metrics reference](/using-k6/metrics/r
-In the future metrics names will be further limited to comply with Open telemetry and Prometheus limitations. +In the future, metrics names will be further limited to comply with OpenTelemetry and Prometheus limitations. -That will mean that metric names can be 1 to 63 symbols of ASCII letters, numbers and `_`. And must not start with a number. +That means metric names can be 1 to 63 symbols of ASCII letters, numbers, or `_`. Metric names must not start with a number.
-At the moment a metric name can be 1 to 128 symbols of: +At the moment, a metric name can be 1 to 128 symbols of: 1. any Unicode Letters 2. any Unicode Number 3. `.`, `_`, ` `, `!`, `?`. `/`, `#`, `(`. `)`, `<`, `>`, `%` and `-`