-
Notifications
You must be signed in to change notification settings - Fork 187
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
Templating #37
Templating #37
Conversation
This commit makes it easier handling multiple prometheus alerts. Previously we combined multiple alerts to a single teams message card, where we need to handle to large teams messages. In this approach, we make it simpler by not combining multiple prometheus alerts to a single teams message card as this might not be possible anymore with templating, as you would need to parse the json and thus loosing the flexibility that we want to gain with the templating approach
FYI: The current status is still very in progress as unit testing does not work at all and lots of old code snippets have been commented out...please ignore that for now :D . See #12 for more information about my thoughts and issues... |
Open ToDos:
|
… backwards compatibility
Codecov Report
@@ Coverage Diff @@
## master #37 +/- ##
===========================================
+ Coverage 43.22% 58.64% +15.42%
===========================================
Files 2 2
Lines 118 162 +44
===========================================
+ Hits 51 95 +44
+ Misses 65 63 -2
- Partials 2 4 +2
Continue to review full report at Codecov.
|
This is my first draft for #12 . I did some research how to implement this and I think it would be good to use the Prometheus Alertmanager templating. It makes sense as prometheus-msteams is based on alertmanager and furthermore, end users might be more comfortable using alertmanager templating where they can use pre-defined functions etc.
There are some stuff still missing that I need to implement:
@bzon it would be great if you can have a look into it and tell me what you think.