Skip to content

Commit adce9b3

Browse files
committed
Add invalid metric names to performance insights
1 parent 1b1d4ba commit adce9b3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/data/markdown/docs/03 cloud/02 Analyzing Results/02 Performance Insights.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ k6 categorizes performance insights into three sets:
2525
- [Too many metrics](#too-many-metrics)
2626
- [Too many time series](#too-many-time-series)
2727
- [Outdated k6 Release Used](#outdated-k6-release-used)
28+
- [Invalid Metric Names](#invalid-metric-names)
2829
- [High load generator CPU usage](#high-load-generator-cpu-usage)
2930
- [High load generator memory usage](#high-load-generator-memory-usage)
3031

@@ -248,6 +249,17 @@ for (let id = 1; id <= 1000; id++) {
248249
- Update the k6 binary that your CI/CD pipeline uses to run tests.
249250
- 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.
250251

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+
251263
## Health alerts
252264

253265
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:
367379
| Too Many Metrics | `best_practice_too_many_metrics` | `best_practice` |
368380
| Too Many Time Series | `best_practice_too_many_time_series` | `best_practice` |
369381
| Outdated k6 Release Used | `best_practice_outdated_k6_release_used` | `best_practice` |
382+
| Invalid Metric Names | `best_practice_invalid_metric_names ` | `best_practice` |
370383
| High Load Generator CPU Usage | `health_high_loadgen_cpu_usage` | `health` |
371384
| High Load Generator Memory Usage | `health_high_loadgen_mem_usage` | `health` |
372385

0 commit comments

Comments
 (0)