Skip to content

Commit

Permalink
Updated auth config example
Browse files Browse the repository at this point in the history
  • Loading branch information
codebien committed Nov 7, 2022
1 parent fd893a1 commit 3743b65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ K6_PROMETHEUS_REMOTE_URL=http://localhost:9090/api/v1/write ./k6 run script.js -

Add TLS and HTTP basic authentication:
```
K6_PROMETHEUS_REMOTE_URL=https://localhost:9090/api/v1/write K6_PROMETHEUS_INSECURE_SKIP_TLS_VERIFY=false K6_CA_CERT_FILE=example/tls.crt K6_PROMETHEUS_USER=foo K6_PROMETHEUS_PASSWORD=bar ./k6 run script.js -o output-prometheus-remote
K6_PROMETHEUS_REMOTE_URL=https://localhost:9090/api/v1/write \
K6_PROMETHEUS_INSECURE_SKIP_TLS_VERIFY=false \
K6_PROMETHEUS_USERNAME=foo \
K6_PROMETHEUS_PASSWORD=bar \
./k6 run script.js -o output-prometheus-remote
```

Note: Prometheus remote client relies on a snappy library for serialization which could panic on [encode operations](https://github.com/golang/snappy/blob/544b4180ac705b7605231d4a4550a1acb22a19fe/encode.go#L22).
Expand Down

0 comments on commit 3743b65

Please sign in to comment.