In your rancher instance create an api key and copy the bearer token.
Now fork the telemetry repo and clone in a separate directory:
git clone https://github.com/rancher/telemetry.git # use your fork
cd telemetry
go run main.go client --url=https://localhost:8443/v3 --token-key=token-abc:xyz