-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Microsoft Teams action type #56395
Comments
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
I'd love to see this functionality as well. That said, you can do it manually pretty simply. You just use the "Custom Webhook" destination option and put your Teams URL in the webhook URL field. Then remove the default parameter. On your action, you just have to format the json properly. Here is an example of what I am using in the "Message" field on my trigger:
|
@CovertLeopard any chance you can share the full sample config you setup for this action? Is the message snippet you sent above part of the body field? Thanks! |
@keenan-s I'm not sure what you are looking for exactly, so I'll share all the things. In Teams, you need to enable the "Incoming Webhook" connector. Provide a name, change the icon if you want and then create it and you are given a unique URL. Now, in Kibana, this is how our destination is setup: This is how the monitor is setup: This is how the monitor definition is setup: JSON from the extraction query:
For the Action, it's a Notification. Give it a name and choose your Teams webhook from the "Destination name" dropdown. Then paste the JSON below into the "Message" field.
|
@CovertLeopard thanks a lot. I was setting the watcher alerts up using just a full JSON payload. Your example helped, here is what I ended up using:
|
It looks like when you are setting up an Incoming Webhook app on Teams, you must select the specific channel when configuring the webhook. It doesn't look like there is an option to configure a team-wide webhook and specify the channel in the webhook message body (even though the wording when setting up the webhook seems to indicate you can, I'm unable to just enter a team name). |
Not a surprise. But I will note that I think for Slack, we are using one particular endpoint to post messages, that has a number of constraints like only posting to a specific channel. But there are others that provide more options - we have an issue to look into this (I think it will also be needed to post images). So ... makes me wonder if there is a "simple" API and a "richer" API for Teams, like there is for Slack. Also note, for Slack, you can essentially target individuals/teams/channels via In any case, I think starting with something "simpler" that we can grow over time, works for me. |
Describe the feature:
This action would send notifications to Microsoft Teams using their Incoming Webhook connector
Note:
There was some feedback on the Slack connector that you should be able to select a person / channel to send a message to instead of having a connector per. It's feedback worth considering for this connector.
The text was updated successfully, but these errors were encountered: