From 5739b8805fe9345676e0c2f34cb465aafbc0dbc3 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov <312246+mstoykov@users.noreply.github.com> Date: Mon, 19 Jun 2023 10:42:42 +0300 Subject: [PATCH] Document metric name restrictions (#1205) Co-authored-by: Oleg Bespalov --- .../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 8b88d6d8f..47e0dc0c6 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 OpenTelemetry and Prometheus limitations. + +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: +1. any Unicode Letters +2. any Unicode Number +3. `.`, `_`, ` `, `!`, `?`. `/`, `#`, `(`. `)`, `<`, `>`, `%` and `-`