You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data/markdown/docs/02 javascript api/10 k6-metrics.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,14 @@ title: 'k6/metrics'
3
3
excerpt: 'k6 Custom Metrics API'
4
4
---
5
5
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.
7
8
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.
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/02 Using k6/04 Thresholds.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ For example, you can create thresholds for any combination of the following expe
13
13
- 95% of requests have a response time below 200ms.
14
14
- 99% of requests have a response time below 400ms.
15
15
- 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).
17
17
18
18
Thresholds are also essential for [load-testing automation](/testing-guides/automated-performance-testing):
19
19
@@ -207,7 +207,7 @@ If you want to set multiple thresholds for a metric, specify them with an [array
207
207
208
208
## Threshold examples to copy and paste
209
209
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).
211
211
Here are a few copy-paste examples that you can start using right away.
212
212
213
213
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 () {
485
485
486
486
</CodeGroup>
487
487
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%.
489
489
490
490
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:
0 commit comments