You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* querier: do not cache results if requested
Add an extra `Headers` field to the `PrometheusResponse` message which
contains the headers and their values that came from Prometheus.
Use them in other places to deduce if the response should be cached. If
`Cache-Control` is equal to `no-store` then it is *not* cached.
This will be used by the Thanos project to indicate when a partial
response has been returned. In such cases the result should not be
cached so that invalid data would not be stored there.
Signed-off-by: Giedrius Statkevičius <[email protected]>
* queryrange: factor out cache checking + add tests
Signed-off-by: Giedrius Statkevičius <[email protected]>
* querier: gofmt
Signed-off-by: Giedrius Statkevičius <[email protected]>
* querier: tests: add missing member
Signed-off-by: Giedrius Statkevičius <[email protected]>
* querier: fix logical mistake
Signed-off-by: Giedrius Statkevičius <[email protected]>
* queryrange: fix generated code
Signed-off-by: Giedrius Statkevičius <[email protected]>
* querier: test adjustments
Signed-off-by: Giedrius Statkevičius <[email protected]>
* querier: test adjustments
Signed-off-by: Giedrius Statkevičius <[email protected]>
* querier: results_cache: cache by default
Signed-off-by: Giedrius Statkevičius <[email protected]>
* queryrange: cache: check all header values
`Cache-Control` might contain more than one value so check all of them.
Signed-off-by: Giedrius Statkevičius <[email protected]>
* Update according to Goutham's comments
Signed-off-by: Giedrius Statkevičius <[email protected]>
* CHANGELOG: add full stop, PR's number
Signed-off-by: Giedrius Statkevičius <[email protected]>
0 commit comments