Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 3743b65

Browse files
committed
Updated auth config example
1 parent fd893a1 commit 3743b65

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ K6_PROMETHEUS_REMOTE_URL=http://localhost:9090/api/v1/write ./k6 run script.js -
2525

2626
Add TLS and HTTP basic authentication:
2727
```
28-
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
28+
K6_PROMETHEUS_REMOTE_URL=https://localhost:9090/api/v1/write \
29+
K6_PROMETHEUS_INSECURE_SKIP_TLS_VERIFY=false \
30+
K6_PROMETHEUS_USERNAME=foo \
31+
K6_PROMETHEUS_PASSWORD=bar \
32+
./k6 run script.js -o output-prometheus-remote
2933
```
3034

3135
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).

0 commit comments

Comments
 (0)