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
The metadata APIs like /api/v1/series, /api/v1/labels, /api/v1/label/<name>/values often timeout when queried with a lot of data.
Recently Prometheus introduced a new limit param in the above APIs for limiting the amount of data returned. This change was implemented in:
However, we currently don't make use of this information, so the stores may do a bunch of work retrieving values that will then be thrown away in the querier.
Describe the solution you'd like
Thanos stores should truncate the results if the limit param is set and return only the required number of results
Is your proposal related to a problem?
The metadata APIs like
/api/v1/series
,/api/v1/labels
,/api/v1/label/<name>/values
often timeout when queried with a lot of data.Recently Prometheus introduced a new limit param in the above APIs for limiting the amount of data returned. This change was implemented in:
However, we currently don't make use of this information, so the stores may do a bunch of work retrieving values that will then be thrown away in the querier.
Describe the solution you'd like
Thanos stores should truncate the results if the limit param is set and return only the required number of results
Describe alternatives you've considered
(Write your answer here.)
Additional context
prometheus/prometheus#12795 has more context about this problem.
Work tracker
The text was updated successfully, but these errors were encountered: