SelectSeries always returns all time series in a single response. In many cases, only a subset of the series is actually used (for example, in Explore Profiles, we only show the top 10).
As a quick optimization, we could add a parameter that limits the number of series returned, something like:
message Limit {
int32 top_k_total = 1;
}
Note that the limit should be applied in the query frontend, after all the series have been collected. Later on, we can implement a fully-fledged time-series query engine capable of handling PromQL syntax (or a subset)
SelectSeries
always returns all time series in a single response. In many cases, only a subset of the series is actually used (for example, in Explore Profiles, we only show the top 10).As a quick optimization, we could add a parameter that limits the number of series returned, something like:
Note that the limit should be applied in the query frontend, after all the series have been collected. Later on, we can implement a fully-fledged time-series query engine capable of handling PromQL syntax (or a subset)