-
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.
Add support for reading VictorOps API key from file (#3111)
* Read VictorOps API key from file * Update documentation * Improve tests Signed-off-by: Oktarian T-B <oktariantilneybassett@improbable.io>
- Loading branch information
Oktarian T-B
committed
Oct 25, 2022
1 parent
893ad67
commit dd7214e
Showing
9 changed files
with
174 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
global: | ||
victorops_api_key: asd132 | ||
victorops_api_key_file: '/global_file' | ||
route: | ||
group_by: ['alertname', 'cluster', 'service'] | ||
group_wait: 30s | ||
group_interval: 5m | ||
repeat_interval: 3h | ||
receiver: team-Y-victorops | ||
routes: | ||
- match: | ||
service: foo | ||
receiver: team-X-victorops | ||
receivers: | ||
- name: 'team-X-victorops' | ||
victorops_configs: | ||
- routing_key: 'team-X' | ||
- name: 'team-Y-victorops' | ||
victorops_configs: | ||
- routing_key: 'team-Y' | ||
api_key: qwe456 |
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,20 @@ | ||
global: | ||
victorops_api_key_file: '/global_file' | ||
route: | ||
group_by: ['alertname', 'cluster', 'service'] | ||
group_wait: 30s | ||
group_interval: 5m | ||
repeat_interval: 3h | ||
receiver: team-Y-victorops | ||
routes: | ||
- match: | ||
service: foo | ||
receiver: team-X-victorops | ||
receivers: | ||
- name: 'team-X-victorops' | ||
victorops_configs: | ||
- routing_key: 'team-X' | ||
- name: 'team-Y-victorops' | ||
victorops_configs: | ||
- routing_key: 'team-Y' | ||
api_key_file: /override_file |
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