forked from prometheus/alertmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding telegram support (prometheus#2827)
* added telegram config in notifiers Signed-off-by: timmilesdw <[email protected]> * added telegram config to config.go Signed-off-by: timmilesdw <[email protected]> * added package telegram to notify and initialization in cmd Signed-off-by: timmilesdw <[email protected]> * added telegram.default.message Signed-off-by: timmilesdw <[email protected]> * added telegram template to notifiers.go Signed-off-by: timmilesdw <[email protected]> * added message rendering from template to telegram integration Signed-off-by: timmilesdw <[email protected]> * documentation for telegram_configs Signed-off-by: timmilesdw <[email protected]> * added tests for telegram Signed-off-by: timmilesdw <[email protected]> * fixed config_test.go Signed-off-by: timmilesdw <[email protected]> * added valid parse_mode list to the error log Signed-off-by: timmilesdw <[email protected]> * made use of httpconfig, moved telegram client creation to New func, changed message truncation to 4096 chars Signed-off-by: timmilesdw <[email protected]> * changed supported values for telegram config Signed-off-by: timmilesdw <[email protected]> * added mock url for telegram tests to pass Signed-off-by: timmilesdw <[email protected]> * added api_url check to telegram config Signed-off-by: timmilesdw <[email protected]> * changed bot_token type to secret Signed-off-by: timmilesdw <[email protected]> * removed extra emptyline Signed-off-by: timmilesdw <[email protected]> * convert bot_token to string in telegram client creation Signed-off-by: timmilesdw <[email protected]> * updated configuration.md Signed-off-by: timmilesdw <[email protected]> * fixed mixed up errors Signed-off-by: timmilesdw <[email protected]> * check telegram api url without conversion to string Signed-off-by: timmilesdw <[email protected]>
- Loading branch information
1 parent
d4573e2
commit 1138a08
Showing
12 changed files
with
301 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.