How Alertmanager and Teams easily reduce incident response time proactive

Mirco | VerboseMode.dev on 2021-11-04

Get notifications from the Alertmanager to Microsoft Teams

This tutorial is a bonus part of the Monitoring Stack Series.

Many companies use Microsoft Teams. Receiving alerts in Teams allows you to react faster. It makes working on an incident visible, as you can answer the message. Let’s add it to our monitoring stack!

Alertmanager setup with docker-compose. Full monitoring stack — part 3.verbosemode.dev

As always, head over to GitHub to get the full code.

Configure Microsoft Teams

Alertmanager does not support Teams out of the box. You must use Webhooks to achieve this. The Webhook is used by prom2teams to write messages.

Add a channel to the team which should receive the notifications if you do not have one. Click on the dots beside the team name and choose Add Channel.

To add a Webhook, click on the dots beside the channel and click on Connectors .

Configure an Incoming Webhook. Teams shows the Webhook URL once you click Create. Copy this URL in the next step.