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: README.md
+8
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,14 @@
5
5
6
6
Output k6 extension used by the [synthetic monitoring agent](https://github.com/grafana/synthetic-monitoring-agent).
7
7
8
+
## Configuration
9
+
10
+
By default, this extension will drop all metrics which have a `resource_type` tag when the value for the tag is not `Document`. This is done to avoid generating metrics for every URL that a k6 script using browser would normally generate, including those for images, scripts, and others.
11
+
12
+
This `resource_type` allowlist is configurable by means of the `SM_K6_BROWSER_RESOURCE_TYPES` environment variable, which should be set to a comma-separated list of `resource_type`s that should not be dropped. The list of known `resource_type`s can be found [here](https://github.com/grafana/k6/blob/v0.57.0/internal/js/modules/k6/browser/common/http.go#L25).
13
+
14
+
This matching is case-insensitive, and the special value `*` will cause every `resource_type` to be retained. Conversely, an empty list will cause all metrics from browser to be omitted.
15
+
8
16
## Build
9
17
10
18
Use [xk6](https://github.com/grafana/xk6). See the CI/CD pipelines for a full example of a build command.
0 commit comments