Configure Microsoft Teams for Alerting
Use the Grafana Alerting - Microsoft Teams integration to receive notifications in your team’s channel when your alerts are firing.
Before you begin
To set up Microsoft Teams for integration with Grafana Alerting, create a new workflow that accepts Webhook requests. This allows Grafana to send alert notifications to Microsoft Teams channels.
Create a workflow in Microsoft Teams
- To create a new workflow, follow the steps in Create flows in Microsoft Teams.
- Microsoft provides a template library. You can use the template Post to a channel when a webhook request is received.
- At the end of workflow creation wizard, copy the URL that is provided.
Note If you chose a private channel for the target of the workflow, you need to edit workflow before using it. Expand the step “Send each adaptive card”, and then expand action “Post your own adaptive card as the Flow bot to a channel”. Change “Post as” to User, and save the workflow.
Procedure
To create your MS Teams integration in Grafana Alerting, complete the following steps.
- Navigate to Alerts & IRM -> Alerting -> Contact points.
- Click + Add contact point.
- Enter a contact point name.
- From the Integration list, select Microsoft Teams.
- In the URL field, copy in your Webhook URL.
- Click Test to check that your integration works. A test alert notification should be sent to the MS Team channel.
- Click Save contact point.
Next steps
The Microsoft Teams contact point is ready to receive alert notifications.
To add this contact point to your alert, complete the following steps.
- In Grafana, navigate to Alerting > Alert rules.
- Edit or create a new alert rule.
- Scroll down to the Configure labels and notifications section.
- Under Notifications click Select contact point.
- From the drop-down menu, select the previously created contact point.
- Click Save rule and exit.
Troubleshooting
- If Grafana reports that notification was sent successfully but it was not delivered to the channel, check the workflow’s run history. You can find it in the workflow details page.