-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for X-Scope-OrgID header in Prometheus scaler #2667
Comments
Hi @romanvog |
hey @JorTurFer, |
I would like to tackle this 😄 |
Thanks a lot! ❤️ |
@JorTurFer @xoanmm
And I get this error
If I make a direct query to If I remove the header, I'm able to reproduce the issue from above. What am I doing wrong? It seems the header is not added properly |
https://github.com/kedacore/keda/blob/main/pkg/scalers/prometheus_scaler.go#L197
|
Hey, |
Sure. #3024 |
Proposal
Need to add support for
X-Scope-OrgID
header as part of the query to a multi tenant cortex (prometheus metrics), since it's not possible to get a response without it when multi tenancy is enabled.Use-Case
We're using scalers from type prometheus, and recently moved to a multi tenant cortex to serve metrics from multiple different prometheus instances in different clusters. To support multi tenancy, we need to provide
X-Scope-OrgID
header for cortex to know which prometheus data to return.We need to pass this header in keda's prometheus scaler as well if we want to use cortex endpoint (which we do).
Anything else?
No response
The text was updated successfully, but these errors were encountered: