You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Support for bearer tokens in profilecli. (#4475)
* feat: Support for bearer tokens in profilecli.
This allows to easily connect via Grafana data source proxies:
```
PROFILECLI_URL=https://ops.grafana-ops.net/api/datasources/proxy/uid/grafanacloud-profiles PROFILECLI_TOKEN=glsa_xyz profilecli query series --label-names "service_repository"
```
* Improve language
cmd.Flag("url", "URL of the profile store.").Default("http://localhost:4040").Envar(envPrefix+"URL").StringVar(&client.URL)
90
+
cmd.Flag("url", "URL of the Pyroscope Endpoint. (Examples: https://profiles-prod-001.grafana.net for a Grafana Cloud endpoint, https://grafana.example.net/api/datasources/proxy/uid/<uid> when using the Grafana data source proxy)").Default("http://localhost:4040").Envar(envPrefix+"URL").StringVar(&client.URL)
88
91
cmd.Flag("tenant-id", "The tenant ID to be used for the X-Scope-OrgID header.").Default("").Envar(envPrefix+"TENANT_ID").StringVar(&client.TenantID)
92
+
cmd.Flag("token", "The bearer token to be used for communication with the server. Particularly useful when connecting to Grafana data source URLs (bearer token should be a Grafana Service Account token of the form 'glsa_[...]')").Default("").Envar(envPrefix+"TOKEN").StringVar(&client.BearerToken)
89
93
cmd.Flag("username", "The username to be used for basic auth.").Default("").Envar(envPrefix+"USERNAME").StringVar(&client.BasicAuth.Username)
90
94
cmd.Flag("password", "The password to be used for basic auth.").Default("").Envar(envPrefix+"PASSWORD").StringVar(&client.BasicAuth.Password)
91
95
cmd.Flag("protocol", "The protocol to be used for communicating with the server.").Default(protocolTypeConnect).EnumVar(&client.protocol,
0 commit comments