Bläddra i källkod

Update to support query and query_range

(cherry picked from commit d6583093e2a45cc43e5746e3031f6fb9f7b9fc5e)
Matt Bolt 5 år sedan
förälder
incheckning
7fea6e7312
1 ändrade filer med 1 tillägg och 1 borttagningar
  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
 	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")
 		}
 		return queryParams