Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update k6 module path that was changed in v0.32.0 #1

Merged
merged 1 commit into from
May 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A k6 extension implements Prometheus HTTP exporter as k6 output extension.

Using **xk6-prometheus** output extension you can collect metrics from long running k6 process with Prometheus. All custom k6 metrics ([Counter](https://k6.io/docs/javascript-api/k6-metrics/counter/),[Gauge](https://k6.io/docs/javascript-api/k6-metrics/gauge/),[Rate](https://k6.io/docs/javascript-api/k6-metrics/rate/),[Trend](https://k6.io/docs/javascript-api/k6-metrics/trend/)) and [build-in metrics](https://k6.io/docs/using-k6/metrics/#built-in-metrics) will be accessible as appropiate Prometheus metrics on a given HTTP port in Prometheus importable text format.

Built for [k6](https://github.com/loadimpact/k6) using [xk6](https://github.com/k6io/xk6).
Built for [k6](https://go.k6.io/k6) using [xk6](https://github.com/k6io/xk6).

## Build

Expand All @@ -17,12 +17,12 @@ Then:

1. Download `xk6`:
```bash
$ go get -u github.com/k6io/xk6
$ go install github.com/k6io/xk6/cmd/xk6@latest
```

2. Build the binary:
```bash
$ xk6 build v0.31.1 --with github.com/szkiba/xk6-prometheus
$ xk6 build --with github.com/szkiba/xk6-prometheus@latest
```

> You should use at least `v0.31.0` version because xk6-prometheus extension registers itself as output extension. This feature introduced in the `v0.31.0` version of k6.
Expand Down Expand Up @@ -201,4 +201,4 @@ k6_vus 1
# HELP k6_vus_max Max possible number of virtual users
# TYPE k6_vus_max gauge
k6_vus_max 1
```
```
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
version: "3"

env:
K6_VERSION: v0.31.1
K6_VERSION: v0.32.0

silent: true

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ go 1.16

require (
github.com/gorilla/schema v1.2.0
github.com/loadimpact/k6 v0.31.1
github.com/prometheus/client_golang v1.10.0
go.k6.io/k6 v0.32.0
)
Loading