Skip to content

Commit 5739b88

Browse files
Document metric name restrictions (#1205)
Co-authored-by: Oleg Bespalov <[email protected]>
1 parent 52d20a8 commit 5739b88

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/data/markdown/translated-guides/en/02 Using k6/02 Metrics.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,18 @@ default ✓ [======================================] 1 VUs 00m03.8s/10m0s 1/1
106106
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.
107107
For details of all metrics, refer to the [Metrics reference](/using-k6/metrics/reference/).
108108
109+
110+
### Metric name restrictions
111+
112+
<Blockquote mod="warning" title="">
113+
114+
In the future, metrics names will be further limited to comply with OpenTelemetry and Prometheus limitations.
115+
116+
That means metric names can be 1 to 63 symbols of ASCII letters, numbers, or `_`. Metric names must not start with a number.
117+
118+
</Blockquote>
119+
120+
At the moment, a metric name can be 1 to 128 symbols of:
121+
1. any Unicode Letters
122+
2. any Unicode Number
123+
3. `.`, `_`, ` `, `!`, `?`. `/`, `#`, `(`. `)`, `<`, `>`, `%` and `-`

0 commit comments

Comments
 (0)