Skip to content

Commit

Permalink
Support downsampling for API method /series.
Browse files Browse the repository at this point in the history
Signed-off-by: Aleskey Sin <leks.sin@gmail.com>
  • Loading branch information
IKSIN committed Feb 3, 2020
1 parent 9b17ba1 commit 5597322
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/query/api/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 5597322

Please sign in to comment.