Skip to content

Commit

Permalink
Support downsampling for API method /series. (#2003)
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 6, 2020
1 parent a79edc7 commit cf558de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/query/api/v1.go
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 cf558de

Please sign in to comment.