Closed alexanderldavis closed 4 months ago
Overrides appear to work for me on the latest version. Two things to check would be if multitenancy is enabled in the Mimir configuration, and if the org ID is being passed in the request (the X-Scope-OrgID
header). If multitenancy is disabled, tenant overrides are ignored.
another thing to check - if multiple tenants are used for the query, then the lowest limit is enforced.
I'm going to close this issue since we have tests demonstrating that per-tenant overrides work.
Describe the bug
When trying to override the total query time range limit on a per-tenant basis, we continue to get the error
bad_data: the total query time range exceeds the limit (query length: 43848h0m0s, limit: 6144h0m0s) (err-mimir-max-total-query-length). To adjust the related per-tenant limit, configure -query-frontend.max-total-query-length, or contact your service administrator.
To Reproduce
Steps to reproduce the behavior:
and we are configuring the per-tenant override set to 10y:
max_total_query_length
override is being set correctly.bad_data: the total query time range exceeds the limit
will appear.Expected behavior
max_total_query_length
should be configurable on a per-tenant basis, so that certain tenants allow for longer query windows than the global limit.Environment
On Grafana Mimir v2.10.x
Additional Context