-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds glob support for filepath in tools command (#4105)
* Adds wildcard filepath option to tools command - Adds glob check - Adds test and test files Signed-off-by: someshkoli <kolisomesh27@gmail.com> * improve error check for `filepath.Glob` Signed-off-by: someshkoli <kolisomesh27@gmail.com> * update errors import Signed-off-by: someshkoli <kolisomesh27@gmail.com> * minor code refactor Signed-off-by: someshkoli <kolisomesh27@gmail.com> * add err check for file open Signed-off-by: someshkoli <kolisomesh27@gmail.com>
- Loading branch information
1 parent
833931a
commit 61f144c
Showing
4 changed files
with
80 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
groups: | ||
- name: test-alert-group | ||
partial_response_strategy: "warn" | ||
interval: 2m | ||
rules: | ||
- alert: TestAlert | ||
expr: 1 | ||
labels: | ||
key: value | ||
annotations: | ||
key: value | ||
|
||
- name: test-rule-group | ||
partial_response_strategy: "warn" | ||
interval: 2m | ||
rules: | ||
- record: test_metric | ||
expr: 1 |
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,18 @@ | ||
groups: | ||
- name: test-alert-group | ||
partial_response_strategy: "warn" | ||
interval: 2m | ||
rules: | ||
- alert: TestAlert | ||
expr: 1 | ||
labels: | ||
key: value | ||
annotations: | ||
key: value | ||
|
||
- name: test-rule-group | ||
partial_response_strategy: "warn" | ||
interval: 2m | ||
rules: | ||
- record: test_metric | ||
expr: 1 |
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