Menu
Grafana Cloud Enterprise Open source

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

  1. To create a new workflow, follow the steps in Create flows in Microsoft Teams.
  2. Microsoft provides a template library. You can use the template Post to a channel when a webhook request is received.
  3. 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.

  1. Navigate to Alerts & IRM -> Alerting -> Contact points.
  2. Click + Add contact point.
  3. Enter a contact point name.
  4. From the Integration list, select Microsoft Teams.
  5. In the URL field, copy in your Webhook URL.
  6. Click Test to check that your integration works. A test alert notification should be sent to the MS Team channel.
  7. 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.

  1. In Grafana, navigate to Alerting > Alert rules.
  2. Edit or create a new alert rule.
  3. Scroll down to the Configure labels and notifications section.
  4. Under Notifications click Select contact point.
  5. From the drop-down menu, select the previously created contact point.
  6. 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.