Skip to content

Commit

Permalink
Update metric name restrictions
Browse files Browse the repository at this point in the history
Changes in code done in grafana/k6#3335
  • Loading branch information
mstoykov authored Sep 20, 2023
1 parent 7ed08f2 commit f71369e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ For details of all metrics, refer to the [Metrics reference](/using-k6/metrics/r
## Metric name restrictions
Metric names must comply with OpenTelemetry and [Prometheus limitations](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
Metric names must comply with OpenTelemetry and [Prometheus limitations](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). The character limit is the same limit k6 had before restricting the character set down.
That means they must not start with a number and a metric name can be 1 to 63 symbols of:
That means they must not start with a number and a metric name can be 1 to 128 symbols of:
1. any Unicode Letters
2. any Unicode Number
3. `_` (an underscore)

0 comments on commit f71369e

Please sign in to comment.