File
Open source
File
You can use this secret source to load secrets from a key=value pair file as in:
bash
$ k6 run --secret-source=file=secrets.file script.js
docker
$ docker run -it --rm \
-v <scriptdir>:/scripts \
grafana/k6 run --secret-source=file=/scripts/secrets.file /scripts/script.js
Was this page helpful?
Related documentation
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
07 May

Easy homelab observability with Grafana Beyla, powered by eBPF and OpenTelemetry
Learn how to deploy Beyla with Prometheus and leverage the power of OpenTelemetry’s semantic conventions to observe your services with ease, in your home lab or in production.
Blog post

How eBPF makes observability awesome
The latest episode of "Grafana's Big Tent" is about how eBPF can observe and affect what happens across a system and its applications.
Blog post

How to use Grafana Beyla in Grafana Alloy for eBPF-based auto-instrumentation
Learn how to use Grafana Beyla in Grafana Alloy to get RED metrics from your running services, as well as instrument your apps automatically in Kubernetes.