From 7dee44e9ecf2d2fc239e9b704f6ef82a1e517500 Mon Sep 17 00:00:00 2001 From: Bartek Plotka Date: Wed, 4 Jul 2018 23:41:41 +0100 Subject: [PATCH] query: Disable downsampling by default until it will came out of experimental phase. (Details https://github.com/improbable-eng/thanos/issues/376) Signed-off-by: Bartek Plotka --- pkg/query/api/v1.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/query/api/v1.go b/pkg/query/api/v1.go index ab127c7cc29..ae0a4e4eaf6 100644 --- a/pkg/query/api/v1.go +++ b/pkg/query/api/v1.go @@ -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 {