Grafana Cloud k6 — interaction reference
The default path is the
gcx
CLI. When gcx isn't installed, every
endpoint here is still reachable via direct curl against k6's public
hosts — see §1.2 for the auth-header and host-translation rules. Two
principles shape the rest:
gcx owns Grafana-side auth (when present).
It injects the right
headers on every call, so you should not set auth headers yourself.
The only header you ever set by hand is
X-K6TestRun-Id
, on Loki
log queries (§4), browser screenshot/file fetches (§6), and Tempo
trace queries (§7) — anything else gets overwritten or causes
conflicts. In curl mode the auth headers are manual; see §1.2.
Reach for
gcx k6 ...
subcommands first.
They wrap the common
paths with friendlier ergonomics and handle pagination. Discover
what's available with
gcx help-tree k6
(and drill in further with
gcx help-tree k6
k6-manage
安装
npx skills add https://github.com/grafana/skills --skill k6-manage