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
In my environment, we've got prometheus fronted by a Cloudflare Access tunnel. I'd like to use promql in a script, but to do so, I would need to be able to pass a cf-access-token: XXX header. It would be useful to be able to specify whatever headers you want/need when calling prometheus.
The text was updated successfully, but these errors were encountered:
zph
added a commit
to zph/promql-cli
that referenced
this issue
May 10, 2024
Enables custom headers that will be sent to prometheus endpoint.
Usage:
```
promql -H 'Cookie: a=b' --header 'cf-access-token: XXX' metric{}
```
This addresses an issue registered on Github: nalbury#43
zph
added a commit
to zph/promql-cli
that referenced
this issue
May 10, 2024
Enables custom headers that will be sent to prometheus endpoint.
Usage:
```
promql -H 'Cookie: a=b' --header 'cf-access-token: XXX' metric{}
```
This addresses an issue registered on Github: nalbury#43
Requires updating prometheus/common to gain access to mechanism to
provide headers.
Since I was updating that package, I pulled forward the other packages
to recent versions.
In my environment, we've got prometheus fronted by a Cloudflare Access tunnel. I'd like to use
promql
in a script, but to do so, I would need to be able to pass acf-access-token: XXX
header. It would be useful to be able to specify whatever headers you want/need when calling prometheus.The text was updated successfully, but these errors were encountered: