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
Besides built-ins, you can also make custom metrics.
9
9
10
10
11
-
Metrics fall into four broad types.
12
-
-**Counter.**Sums values
13
-
-**Gauge.**Tracks the smallest, largest, and latest values
14
-
-**Rate.**Tracks how frequently a non-zero value occurs
15
-
-**Trend.**Calculates statistics for multiple values (like mean, mode or percentile)
11
+
Metrics fall into four broad types:
12
+
-**Counters**sum values.
13
+
-**Gauges**track the smallest, largest, and latest values.
14
+
-**Rates**track how frequently a non-zero value occurs.
15
+
-**Trends**calculates statistics for multiple values (like mean, mode or percentile).
16
16
17
17
18
-
If you want to make a test fail a certain criteria, you can write [Threshold](/using-k6/thresholds) based on the metric criteria (the specifics of the expression depend on the metric type).
18
+
To make a test fail a certain criteria, you can write a[Threshold](/using-k6/thresholds) based on the metric criteria (the specifics of the expression depend on the metric type).
19
19
To filter metrics, you can use [Tags and groups](/using-k6/tags-and-groups).
20
20
You can also export metrics in various summary and granular formats, as documented in [Results output](/results-output).
0 commit comments