Skip to content

Commit 2d8a403

Browse files
committed
Guides/Metrics: add metrics table
1 parent b657e01 commit 2d8a403

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/data/markdown/docs/01 guides/02 Using k6/02 Metrics.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@ Custom metrics will be reported at the end of a test. Here is how the output mig
102102

103103
All metrics (both the _built-in_ ones and the custom ones) have a type. The four different metric types in k6 are:
104104

105-
- [Counter](/javascript-api/k6-metrics/counter)
106-
- [Gauge](/javascript-api/k6-metrics/gauge)
107-
- [Rate](/javascript-api/k6-metrics/rate) and
108-
- [Trend](/javascript-api/k6-metrics/trend)
105+
| Metric type | Description |
106+
| --------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
107+
| [Counter](/javascript-api/k6-metrics/counter) | A metric that cumulatively sums added values. |
108+
| [Gauge](/javascript-api/k6-metrics/gauge) | A metric that stores the min, max and last values added to it. |
109+
| [Rate](/javascript-api/k6-metrics/rate) | A metric that tracks the percentage of added values that are non-zero. |
110+
| [Trend](/javascript-api/k6-metrics/trend) | A metric that allows for calculating statistics on the added values (min, max, average and percentiles). |
111+
112+
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.
109113

110114
### Counter _(cumulative metric)_
111115

0 commit comments

Comments
 (0)