Office 365/Microsoft teams alert channel
To send alert notifications from Instana to Office 365 or Microsoft teams, create an alert channel.
Alert notifications are sent to Office 365 or Microsoft teams in real time by using Workflows or Incoming Webhooks.
Prerequisites
Before you begin ensure that you have a workflow or webhook URL for connecting to Office 365 or Microsoft Teams.
Steps for migrating to workflows: In order to migrate from existing alert channels that uses a webhook URL, replace your Workflow / Webhook URL field on the UI with a valid workflow URL. Complete the following Getting a workflow or webhook URL procedure to create the workflow URLs for your channel.
Getting a workflow or webhook URL
Workflows: Follow the instructions from Microsoft to create a workflow by using the template Post to a channel when a webhook request is received.
- Public channel: If channel moderation is enabled, make sure to select the
Allow bots to submit channel messagespermission in the Microsoft Teams channel settings. - Private channel: By default, workflow bots do not support posting to private channels. As a workaround, modify the workflow to post as a user.
Incoming webhooks: New incoming webhook connectors cannot be created in Microsoft Teams after 15 August 2024. To migrate from existing incoming webhooks to workflows, follow the steps under the Workflows section and update the Instana alert channel webhook URL to the workflow URL
To set up an Incoming Webhook for the Office 365 or Microsoft Teams alert channel integration, see Post external requests to Teams with Incoming Webhook.
Creating an Office 365 or Microsoft Teams alert channel
Use the Instana UI to set up your alert channel:
- From the main navigation, click .
- Within the section Events & alerts, click Alert channels.
- Click Add alert channel.
- Within the Add an alert channel window, select Office 365 / Microsoft Teams from the list of available Unidirectional channels. Then, click Add alert channel.
- Configure your alert channel settings:
- Name : Enter a unique name for identifying the channel.
- Workflow / Webhook URL: Enter the URL for workflow or webhook that is set up for sending the alert notifications.
- You can click Test channel to test whether the configured channel settings are valid and can receive a test notification.
- Teams: You can optionally tag the channel so that members of the specified team, or teams, can more easily find the channel in the UI.
- (Optional) Expand the Advanced section to customize notifications:
- - Add timezone: Set a specific time zone to ensure that recipients view messages in the their local time instead of the default UTC time.
Figure 1. Add time zone
To add a time zone, click Add timezone. Then, select the preferred time zone for the alert notifications.
- - Add timezone: Set a specific time zone to ensure that recipients view messages in the their local time instead of the default UTC time.
Alerting examples
After you create the alert channel, Instana sends alerts for events as an HTTP POST to the configured Office 365 or Microsoft Teams Workflow or Webhook URL (HTTP or HTTPS), which is the address that the alerts are sent to.
Workflow examples
On open issues or incidents
On closed issues or incidents
Closed By Instana
Manually closed
Incoming Webhook examples
On open issues or incidents
On closed issues or incidents