Skip to content

query all tenants at once #4408

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

Closed
phin1x opened this issue Aug 6, 2021 · 2 comments
Closed

query all tenants at once #4408

phin1x opened this issue Aug 6, 2021 · 2 comments

Comments

@phin1x
Copy link

phin1x commented Aug 6, 2021

Is your feature request related to a problem? Please describe.
cortex supports multiple tenants ids in the X-Scope-OrgID header (if the feature is activated). at the moment you have to specify a explicit list of tenant ids in the header but you can't query all tenants at once.

we are using cortex for our kubernetes clusters where every namespace is a customer. at the moment we are using a modified version of the prometheus auth project from rancher to provide multi tenancy but this is a bit hacky. a cleaner solution would be that every namespace becomes a tenant in cortex. as an administrator we want to query all tenants but this would add much more complexity because we need to compute a list of all namespaces from all clusters.

Describe the solution you'd like
allow a user to query all tenants, for example with a wildcard (single *) in the X-Scope-OrgID header or a second header in the http request (for example X-Scope-Administrator).

Describe alternatives you've considered

Additional context

@anjmao
Copy link

anjmao commented Aug 11, 2021

I also need something similar to display data from multiple tenants in single grafana dashboard. Maybe querier could be configured to understand multi tenant queries and add/remove tenantID labels. Also querier could allow to return labels with all known tenants for tenant dropdown variable eg:(label_values(cortex_tenant_info))

@stale
Copy link

stale bot commented Nov 16, 2021

This issue has been automatically marked as stale because it has not had any activity in the past 60 days. It will be closed in 15 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 16, 2021
@stale stale bot closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants