@@ -25,6 +25,7 @@ k6 categorizes performance insights into three sets:
25
25
- [ Too many metrics] ( #too-many-metrics )
26
26
- [ Too many time series] ( #too-many-time-series )
27
27
- [ Outdated k6 Release Used] ( #outdated-k6-release-used )
28
+ - [ Invalid Metric Names] ( #invalid-metric-names )
28
29
- [ High load generator CPU usage] ( #high-load-generator-cpu-usage )
29
30
- [ High load generator memory usage] ( #high-load-generator-memory-usage )
30
31
@@ -248,6 +249,17 @@ for (let id = 1; id <= 1000; id++) {
248
249
- Update the k6 binary that your CI/CD pipeline uses to run tests.
249
250
- If you're part of an organization or team, collectively decide on a version of k6 to use going forward for consistency and ease of comparison.
250
251
252
+ ### Invalid Metric Names
253
+
254
+ _ Identifier_ : ` best_practice_invalid_metric_names `
255
+
256
+ - ** Happens when** :
257
+ you tag your custom metrics with invalid names.
258
+ - ** Recommendations** :
259
+ - Ensure your custom metric names comply with OpenTelemetry and Prometheus limitations. Such as:
260
+ - they only contain valid symbols of ASCII letters, numbers, or ` _ ` .
261
+ - Metric names must not start with a number.
262
+
251
263
## Health alerts
252
264
253
265
Health alerts happen when the load generator has high resource utilization.
@@ -367,6 +379,7 @@ For all insights and their identifiers, refer to the table below:
367
379
| Too Many Metrics | ` best_practice_too_many_metrics ` | ` best_practice ` |
368
380
| Too Many Time Series | ` best_practice_too_many_time_series ` | ` best_practice ` |
369
381
| Outdated k6 Release Used | ` best_practice_outdated_k6_release_used ` | ` best_practice ` |
382
+ | Invalid Metric Names | ` best_practice_invalid_metric_names ` | ` best_practice ` |
370
383
| High Load Generator CPU Usage | ` health_high_loadgen_cpu_usage ` | ` health ` |
371
384
| High Load Generator Memory Usage | ` health_high_loadgen_mem_usage ` | ` health ` |
372
385
0 commit comments