user2164520
user2164520

Reputation: 51

Stackdriver Alerting Policy notification in Microsoft Teams

Any update here Any way to receive Google Stackdriver Alerting Policy to Microsoft Teams?

I tried via the "Static Webhook" option in Stackdriver and using a webhook incoming connector in Teams but this is not working. Is this still not compatible? Or there are any other way to get this working in a Team channel. I know already that "the outgoing webhook of stackdriver and the incomming webhooks connector are not compatible, as they use different formats and in microsoft teams chats/channels do not have an email address (only users do). looks like making a mailing list in office 365 is the best option so far"

Upvotes: 5

Views: 2557

Answers (3)

GyeongSik Jang
GyeongSik Jang

Reputation: 83

It may have been resolved now, but I solved it by creating a Cloud Function through the link below. https://github.com/Courtsite/gcp-monitoring-to-teams

I have confirmed that the Test Connection is also normally coming in as shown below, and it seems that you can get an Alert from GCP Monitoring to Teams by referring to the Github link below.

enter image description here

I hope the information I'm providing will be helpful.

Upvotes: 1

Heber Mendoza
Heber Mendoza

Reputation: 156

As a workaround you can use another channel.

For example you can configure the alerting policy via email, and send the notification to the Email address of your Microsoft Teams Channel.

In order to forward / send an Email to an MS Teams Channel, you need to know what is the Email address of your Team Channel, and is pretty simple, just find the Channel that you’d like to Email, find the ellipsis and then select “Get Email address”,check this image for reference.

Once you’ve clicked “Get Email address”, just make a copy of it and you are ready to sent your Stack Driver alerts directly to your MS Teams Chanel using Email alerting configuration.

You can read this "How to send an email to a channel in Teams" guide on Microsoft Support site.

Other Workaround are you can use a service in the middle that catch the Stackdriver message (JSON) and converts it to MS Teams format and then send it again to the desired destination, but it maybe involves some development work to your team.

Also i can see Google have an active Feature request about your question. You can track the evolution here and I would recommend you to ‘star it’ in order to receive updates on its progress.

I hope the information I have provided will be helpful to you. =)

Upvotes: 7

Heber Mendoza
Heber Mendoza

Reputation: 156

Unfortunately using a webhook to send alerts to Microsoft Teams is not possible because the format used by the outgoing webhook of Stackdriver and the incoming webhook in Microsoft Teams are different and so incompatible.

You have different notification options, like Email. and others more, you can see this public documentation.

Upvotes: 0

Related Questions