Description
Is your feature request related to a problem? Please describe.
Certain UI features are dependent upon certain per-tenant Loki configurations. For example, how we generate log histograms is dependent upon wether or not level discovery is enabled, and in some cases also dependent up wether or not aggregated metrics is enabled. In other situations, it's helpful for the frontend to know what limits exist for a particular tenant, not for enforcement, but to improve the user experience (ie. how much to split a query based on allowed parallelism, or be able to guess ahead of time if a query is going to hit a limit based on the stats response for that query).
Describe the solution you'd like
And endpoint that will return the limits and per-tenant configurations for a specific tenant. We already expose a /config
endpoint, so maybe this is /config/tenant/${tenant_id}
or maybe hitting /config
with a X-Scope-OrgID
can include tenant specific configs?
Describe alternatives you've considered
The alternative would be to not do this, which does reduce complexity in the frontend but also limits are ability to implement certain features. From a troubleshooting perspective, all configs are ultimately discernible via the available config and override files.
I am filing this issue to gauge the desire for such an endpoint? Please react or comment if this is something you think would be useful.