Skip to content

Commit a2e873d

Browse files
committed
output: opentelemetry minor updates
1 parent 8a0d548 commit a2e873d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

docs/sources/k6/next/results-output/real-time/_index.md

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ You can also stream real-time metrics to:
2727

2828
As well as the following third-party services:
2929

30+
- [OpenTelemetry](https://grafana.com/docs/k6/<K6_VERSION>/results-output/real-time/opentelemetry)
3031
- [Amazon CloudWatch](https://grafana.com/docs/k6/<K6_VERSION>/results-output/real-time/amazon-cloudwatch)
3132
- [Apache Kafka](https://grafana.com/docs/k6/<K6_VERSION>/results-output/real-time/apache-kafka)
3233
- [Datadog](https://grafana.com/docs/k6/<K6_VERSION>/results-output/real-time/datadog)

docs/sources/k6/next/results-output/real-time/opentelemetry.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,18 @@ weight: 00
88

99
Grafana k6 can push test run metrics in the [OpenTelemetry (OTEL) metrics format](https://opentelemetry.io/docs/specs/otel/metrics/) to an OTEL metrics collector or a metrics backend that supports the OTEL metrics format by using the experimental OpenTelemetry output `--out experimental-opentelemetry`.
1010

11-
Note that the `experimental-opentelemetry` became a part of k6 only with k6 v0.53.0, so prior that version you should use the [xk6-output-opentelemetry extension](https://github.com/grafana/xk6-output-opentelemetry/).
12-
13-
For any feedback, bugs or suggestions feel free to [open an issue](https://github.com/grafana/xk6-output-opentelemetry/issues) directly in the output repository. Contributions are also welcome!
11+
For any feedback, bugs or suggestions feel free to [open an issue](https://github.com/grafana/k6/issues) directly in the k6 repository. Contributions are also welcome!
1412

1513
## Metrics mapping
1614

1715
k6 converts all [k6 metric types](https://grafana.com/docs/k6/<K6_VERSION>/using-k6/metrics) to an equivalent [OTEL metric type](https://opentelemetry.io/docs/specs/otel/metrics/data-model/#timeseries-model), and all k6 tags to OTEL attributes. When possible, the units are also passed with the metrics.
1816

19-
| k6 Metric | OpenTelemetry Metric |
20-
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21-
| Counter | `Float64CounterOption` |
22-
| Gauge | `Float64ObservableGauge` |
23-
| Rate | Split into two `Int64Counter` counters named `metric_name.occurred` and `metric_name.total`. `metric_name.occurred` counts only the number of non-zero occurrences, and `metric_name.total` registers the total number of positive and negative occurrences. This might change in the future, refer to [xk6-output-opentelemetry#12](https://github.com/grafana/xk6-output-opentelemetry/issues/12) for more details. |
24-
| Trend | `Float64Histogram` |
17+
| k6 Metric | OpenTelemetry Metric |
18+
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
19+
| Counter | `Float64CounterOption` |
20+
| Gauge | `Float64ObservableGauge` |
21+
| Rate | Split into two `Int64Counter` counters named `metric_name.occurred` and `metric_name.total`. `metric_name.occurred` counts only the number of non-zero occurrences, and `metric_name.total` registers the total number of positive and negative occurrences. This might change in the future, refer to [k6#4573](https://github.com/grafana/k6/issues/4573) for more details. |
22+
| Trend | `Float64Histogram` |
2523

2624
## Run the k6 test
2725

0 commit comments

Comments
 (0)