Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(alerting): add client config for telegram #324

Merged
merged 3 commits into from
Sep 7, 2022
Merged

feat(alerting): add client config for telegram #324

merged 3 commits into from
Sep 7, 2022

Conversation

lschloetterer
Copy link
Contributor

@lschloetterer lschloetterer commented Sep 2, 2022

Summary

Adds an option to specify the client config for the telegram alerting provider.
I'm monitoring a local dns server, so the notifications should still go through if the local dns is down.
Builds on top of #284

I have to admit I have never worked with Go before, so I'm not sure how to compile and test the project, but this change seems relatively straighforward.

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Added the documentation in README.md, if applicable.

@lschloetterer
Copy link
Contributor Author

Well, I see now that I just have to build the docker image...
Just tried it out, works as expected

README.md Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #324 (70bc3c1) into master (4857b43) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #324      +/-   ##
==========================================
+ Coverage   82.97%   82.98%   +0.01%     
==========================================
  Files          54       54              
  Lines        3864     3867       +3     
==========================================
+ Hits         3206     3209       +3     
  Misses        514      514              
  Partials      144      144              
Impacted Files Coverage Δ
alerting/provider/telegram/telegram.go 81.63% <100.00%> (+1.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Co-authored-by: TwiN <twin@linux.com>
@lschloetterer
Copy link
Contributor Author

I've removed the example as requested

Copy link
Owner

@TwiN TwiN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work @lschloetterer.

Since you mentioned not being familiar with Go, I'll take care of writing some tests for you.

Thank you for the contribution!

@TwiN TwiN added the feature New feature or request label Sep 7, 2022
@TwiN TwiN merged commit 7a3ee1b into TwiN:master Sep 7, 2022
@lschloetterer lschloetterer deleted the feat/telegram-client-config branch September 8, 2022 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants