Skip to content

Commit

Permalink
Update k6 module path that was changed in v0.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed May 13, 2021
1 parent 0db8f88 commit a334cd7
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 37 deletions.
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

0 comments on commit a334cd7

Please sign in to comment.