-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mimirtool config: small migration and flags output convenience (#1510)
* Output only YAML when only YAML was provided (same for CLI flags) Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com> * Set frontend.results_cache.backend when results cache was enabled in cortex Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com> * Sort output flags Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com> * My own nitpicks Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com> * Update pkg/mimirtool/config/convert.go Co-authored-by: Mauro Stettler <mauro.stettler@gmail.com> * Update pkg/mimirtool/config/convert_test.go Co-authored-by: Mauro Stettler <mauro.stettler@gmail.com> Co-authored-by: Peter Štibraný <pstibrany@gmail.com>
- Loading branch information
Showing
8 changed files
with
97 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
pkg/mimirtool/config/testdata/query-frontend-results-cache-new.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
frontend: | ||
results_cache: | ||
backend: memcached | ||
cache_results: true |
2 changes: 2 additions & 0 deletions
2
pkg/mimirtool/config/testdata/query-frontend-results-cache-old.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
query_range: | ||
cache_results: true |