From cf558de26c2e242da7cd198e0faa22d324a5a429 Mon Sep 17 00:00:00 2001 From: Aleksey Sin Date: Thu, 6 Feb 2020 15:11:02 +0300 Subject: [PATCH] Support downsampling for API method /series. (#2003) Signed-off-by: Aleskey Sin --- pkg/query/api/v1.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/query/api/v1.go b/pkg/query/api/v1.go index 74d0effc8c..cc6a20a0a7 100644 --- a/pkg/query/api/v1.go +++ b/pkg/query/api/v1.go @@ -505,8 +505,7 @@ func (api *API) series(r *http.Request) (interface{}, []error, *ApiError) { return nil, nil, apiErr } - // TODO(bwplotka): Support downsampling? - q, err := api.queryableCreate(enableDedup, replicaLabels, 0, enablePartialResponse, true). + q, err := api.queryableCreate(enableDedup, replicaLabels, math.MaxInt64, enablePartialResponse, true). Querier(r.Context(), timestamp.FromTime(start), timestamp.FromTime(end)) if err != nil { return nil, nil, &ApiError{errorExec, err}