-
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
Allow users to customize the Teams message card #12
Comments
Did somebody already start to work on that? If not, I would do so. |
@Knappek I haven’t planned on working on this yet. Feel free to play around and see how you can bring this feature to life. Thanks. |
Just realized that a message card is not only limited to a size of 14KB but also to a maximum number of 10 sections (see https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/cards/cards-reference#notes-on-the-office-365-connector-card). Hence, we still have a bug that seemed to be fixed #29 . I will address this in the PR for this issue. |
@bzon I have created another PR draft: #37. We might need to talk about how to handle too large message cards as I think this might not be possible anymore using this templating approach (see my last commit). |
@bzon is very busy these days, therefor I'd like to have some input from other folks. @LudwigTirazona @shabeermm @daviddob what do you think about sending out a teams message for each and every prometheus alert and don't combine multiple alerts to a single teams message card. Would that be a problem for you? I want to have your opinion on that as you were involved in #29. |
It's not too big of an issue for me, but what I foresee is that in some
cases, prometheus-msteams will hit the MS Teams API rate limit.
This will be more avoidable if each message sent to MS Teams has its
maximum allowed size well-utilized, rather than one alert/item sent per
message.
…On Wed, Mar 13, 2019, 02:49 Andreas (Andy) Knapp, ***@***.***> wrote:
@bzon <https://github.com/bzon> is very busy these days, therefor I'd
like to have some input from other folks. @LudwigTirazona
<https://github.com/LudwigTirazona> @shabeermm
<https://github.com/shabeermm> @daviddob <https://github.com/daviddob>
what do you think about sending out a teams message for each and every
prometheus alert and don't combine multiple alerts to a single teams
message card. Would that be a problem for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAw1ScfpJcDqooK-X_CBjX5gANAl3Pbwks5vV_azgaJpZM4S4HkJ>
.
|
Good point, I didn't know about the MS Teams api rate limit. I agree that it is more appropriate to bundle alerts to single message cards... Then I'd like to verify my assumptions how to split messages in case that they are too big: Referencing a detailed example teams message card we need to split the |
Correct! :) |
@cordula-grau fyi, this enhancement solves #27 . |
opened PR #37 . Would appreciate some code review, otherwise I'll merge it in the next couple of days and create the minor release 1.1.0. |
This feature is now available in v1.1.0 release. |
Using the Go templating engine, we can include a feature to let the user create their own YAML templates and feed it to prometheus-msteams. The teams message card creation reference is here https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/cards/cards-reference.
We can add a new function named CreateCardFromTemplates that will be called if the user use the
--card-template $TEMPLATE_FILE
.The text was updated successfully, but these errors were encountered: