Skip to content

Commit 7a481a7

Browse files
feat: new links to diff metric topics
Follow-up work from #1152 Plus some minor language fixes
1 parent 2241580 commit 7a481a7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/data/markdown/docs/02 javascript api/10 k6-metrics.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ title: 'k6/metrics'
33
excerpt: 'k6 Custom Metrics API'
44
---
55

6-
The metrics module provides functionality to create [custom metrics](/using-k6/metrics) of various types. All metrics (both the [built-in metrics](/using-k6/metrics#built-in-metrics) and the custom ones) have a type.
6+
The metrics module provides functionality to [create custom metrics](/using-k6/metrics/create-custom-metrics) of various types.
7+
All metrics (both the [built-in metrics](/using-k6/metrics/reference) and the custom ones) have a type.
78

8-
All values added to a custom metric can optionally be [tagged](/using-k6/tags-and-groups) which can be useful when analysing the test results.
9+
You can optionally [tag](/using-k6/tags-and-groups) all values added to a custom metric, which can be useful when analysing the test results.
910

1011
| Metric type | Description |
1112
| --------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
1213
| [Counter](/javascript-api/k6-metrics/counter) | A metric that cumulatively sums added values. |
1314
| [Gauge](/javascript-api/k6-metrics/gauge) | A metric that stores the min, max and last values added to it. |
1415
| [Rate](/javascript-api/k6-metrics/rate) | A metric that tracks the percentage of added values that are non-zero. |
15-
| [Trend](/javascript-api/k6-metrics/trend) | A metric that allows for calculating statistics on the added values (min, max, average and percentiles). |
16+
| [Trend](/javascript-api/k6-metrics/trend) | A metric that calculates statistics on the added values (min, max, average, and percentiles). |

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For example, you can create thresholds for any combination of the following expe
1313
- 95% of requests have a response time below 200ms.
1414
- 99% of requests have a response time below 400ms.
1515
- A specific endpoint always responds within 300ms.
16-
- Any conditions for a [custom metric](/using-k6/metrics#custom-metrics).
16+
- Any conditions for a [custom metric](/using-k6/metrics/create-custom-metrics).
1717

1818
Thresholds are also essential for [load-testing automation](/testing-guides/automated-performance-testing):
1919

@@ -207,7 +207,7 @@ If you want to set multiple thresholds for a metric, specify them with an [array
207207
208208
## Threshold examples to copy and paste
209209
210-
The quickest way to start with thresholds is to use the [standard, built-in k6 metrics](/using-k6/metrics#http-specific-built-in-metrics).
210+
The quickest way to start with thresholds is to use the [built-in metrics](/using-k6/metrics/reference).
211211
Here are a few copy-paste examples that you can start using right away.
212212
213213
For more specific threshold examples, refer to the [Counter](/javascript-api/k6-metrics/counter#counter-usage-in-thresholds), [Gauge](/javascript-api/k6-metrics/gauge#gauge-usage-in-thresholds), [Trend](/javascript-api/k6-metrics/trend#trend-usage-in-thresholds) and [Rate](/javascript-api/k6-metrics/rate#rate-usage-in-thresholds) pages.
@@ -485,7 +485,7 @@ export default function () {
485485
486486
</CodeGroup>
487487
488-
In this example, the `threshold` is configured on the [checks metric](/using-k6/metrics#built-in-metrics), establishing that the rate of successful checks is higher than 90%.
488+
In this example, the `threshold` is configured on the [checks metric](/using-k6/metrics/reference), establishing that the rate of successful checks is higher than 90%.
489489
490490
Additionally, you can use `tags` on checks if you want to define a threshold based on a particular check or group of checks. For example:
491491

0 commit comments

Comments
 (0)