Skip to content

Commit

Permalink
query: Disable downsampling by default until it will came out of expe…
Browse files Browse the repository at this point in the history
…rimental phase.

(Details #376)

Signed-off-by: Bartek Plotka <[email protected]>
  • Loading branch information
bwplotka committed Jul 5, 2018
1 parent eaf7756 commit 7dee44e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/query/api/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ func (api *API) queryRange(r *http.Request) (interface{}, []error, *apiError) {
return nil, nil, &apiError{errorBadData, err}
}

maxSourceResolution := step / 5 // By default fit at least 5 samples between steps.
// TODO(bplotka): Enable downsampling by default (step / 5) once downsampling will be stable (experimental now).
// Details: https://github.com/improbable-eng/thanos/issues/376
maxSourceResolution := 0 * time.Second
if val := r.FormValue("max_source_resolution"); val != "" {
maxSourceResolution, err = parseDuration(val)
if err != nil {
Expand Down

0 comments on commit 7dee44e

Please sign in to comment.