From 38bd902010cdcf51e7d54b0b2db11bdbedd0bc20 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/query/api/v1.go b/pkg/query/api/v1.go index ab127c7cc29..eff3b33185e 100644 --- a/pkg/query/api/v1.go +++ b/pkg/query/api/v1.go @@ -277,7 +277,8 @@ 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). + maxSourceResolution := 0 * time.Second if val := r.FormValue("max_source_resolution"); val != "" { maxSourceResolution, err = parseDuration(val) if err != nil {