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
Support querying multiple stores by Querier (#2747)
* Added support to querier to work with multiple stores.
Store queryables now have filtering function.
Signed-off-by: Peter Štibraný <[email protected]>
* Querier can now use second store for querying.
Signed-off-by: Peter Štibraný <[email protected]>
* Fixes for using chunks and blocks at the same time.
Signed-off-by: Peter Štibraný <[email protected]>
* Added tests for new filtering queryables.
Signed-off-by: Peter Štibraný <[email protected]>
* Added test for distributor querier filter.
Signed-off-by: Peter Štibraný <[email protected]>
* Added test for using multiple store queryables.
Signed-off-by: Peter Štibraný <[email protected]>
* Ignore linter trying to get rid of else.
This form allows q to have smaller scope,
which reduces possibility of incorrect reuse.
Signed-off-by: Peter Štibraný <[email protected]>
* Allow "0" value.
Signed-off-by: Peter Štibraný <[email protected]>
* Mention available formats.
Signed-off-by: Peter Štibraný <[email protected]>
* Support for flagext.Time.
Signed-off-by: Peter Štibraný <[email protected]>
* Extend help for querier.use-second-store-before-time.
Signed-off-by: Peter Štibraný <[email protected]>
* Added CHANGELOG entry, and check to avoid using same primary and secondary engines.
Signed-off-by: Peter Štibraný <[email protected]>
* Put comment why formatMatcher is used.
Signed-off-by: Peter Štibraný <[email protected]>
* Mention that querying feature is experimental.
Signed-off-by: Peter Štibraný <[email protected]>
* Enhance CHANGELOG.md
Signed-off-by: Peter Štibraný <[email protected]>
* Explain default value.
Signed-off-by: Peter Štibraný <[email protected]>
* Added <time> placeholder, with example better examples.
Signed-off-by: Peter Štibraný <[email protected]>
* Removed `buildService` function.
Signed-off-by: Peter Štibraný <[email protected]>
* Mention that last two formats are specified by RFC 3339.
Signed-off-by: Peter Štibraný <[email protected]>
* Fix docs.
Signed-off-by: Peter Štibraný <[email protected]>
*[ENHANCEMENT] Cortex is now built with Go 1.14. #2480#2753
135
+
*[ENHANCEMENT] Experimental: Querier can now optionally query secondary store. This is specified by using `-querier.second-store-engine` option, with values `chunks` or `tsdb`. Standard configuration options for this store are used. Additionally, this querying can be configured to happen only for queries that need data older than `-querier.use-second-store-before-time`. Default value of zero will always query secondary store. #2747
135
136
*[BUGFIX] Ruler: Ensure temporary rule files with special characters are properly mapped and cleaned up. #2506
136
137
*[BUGFIX] Fixes #2411, Ensure requests are properly routed to the prometheus api embedded in the query if `-server.path-prefix` is set. #2372
137
138
*[BUGFIX] Experimental TSDB: fixed chunk data corruption when querying back series using the experimental blocks storage. #2400
Copy file name to clipboardExpand all lines: docs/configuration/config-file-reference.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ To specify which configuration file to load, pass the `-config.file` flag at the
22
22
*`<string>`: a regular string
23
23
*`<url>`: an URL
24
24
*`<prefix>`: a CLI flag prefix based on the context (look at the parent configuration block to see which CLI flags prefix should be used)
25
+
*`<time>`: a timestamp, with available formats: `2006-01-20` (midnight, local timezone), `2006-01-20T15:04` (local timezone), and RFC 3339 formats: `2006-01-20T15:04:05Z` (UTC) or `2006-01-20T15:04:05+07:00` (explicit timezone)
25
26
26
27
### Use environment variables in the configuration
Copy file name to clipboardExpand all lines: docs/configuration/config-file-reference.template
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ To specify which configuration file to load, pass the `-config.file` flag at the
22
22
* `<string>`: a regular string
23
23
* `<url>`: an URL
24
24
* `<prefix>`: a CLI flag prefix based on the context (look at the parent configuration block to see which CLI flags prefix should be used)
25
+
* `<time>`: a timestamp, with available formats: `2006-01-20` (midnight, local timezone), `2006-01-20T15:04` (local timezone), and RFC 3339 formats: `2006-01-20T15:04:05Z` (UTC) or `2006-01-20T15:04:05+07:00` (explicit timezone)
25
26
26
27
### Use environment variables in the configuration
returnnil, fmt.Errorf("second store engine used by querier '%s' must be different than primary engine '%s'", t.Cfg.Querier.SecondStoreEngine, t.Cfg.Storage.Engine)
0 commit comments