File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/data/markdown/docs/01 guides/02 Using k6 Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,14 @@ Custom metrics will be reported at the end of a test. Here is how the output mig
102
102
103
103
All metrics (both the _ built-in_ ones and the custom ones) have a type. The four different metric types in k6 are:
104
104
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.
109
113
110
114
### Counter _ (cumulative metric)_
111
115
You can’t perform that action at this time.
0 commit comments