Sfoglia il codice sorgente

Update to support query and query_range

(cherry picked from commit d6583093e2a45cc43e5746e3031f6fb9f7b9fc5e)
Matt Bolt 5 anni fa
parent
commit
7fea6e7312
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pkg/thanos/thanos.go

+ 1 - 1
pkg/thanos/thanos.go

@@ -86,7 +86,7 @@ func NewThanosClient(address string, timeout, keepAlive time.Duration, queryConc
 
 
 	// max source resolution decorator
 	// max source resolution decorator
 	maxSourceDecorator := func(path string, queryParams url.Values) url.Values {
 	maxSourceDecorator := func(path string, queryParams url.Values) url.Values {
-		if strings.Contains(path, "query_range") {
+		if strings.Contains(path, "query") {
 			queryParams.Set("max_source_resolution", "5m")
 			queryParams.Set("max_source_resolution", "5m")
 		}
 		}
 		return queryParams
 		return queryParams