From 5597322e5f7ce8b50a666aa7f19cdc17c0e94087 Mon Sep 17 00:00:00 2001 From: Aleskey Sin Date: Mon, 3 Feb 2020 12:37:13 +0300 Subject: [PATCH] Support downsampling for API method /series. 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}