MS Teams alert
The MS Teams alert method sends alerts through MS Teams to notify Nobl9 users whenever an incident is triggered.
Authenticationβ
To set up the MS Teams integration, youβll need to provide an MS Teams Webhook URL. This allows you to send an automated notification to a channel of your choice. For details, see MS Teams documentation.
Configuring the MS Teams alert methodβ
You can configure your MS Teams alert method directly in the Nobl9 UI, or by applying a YAML file in sloctl
.
Nobl9 UIβ
To set up the alert method in the Nobl9 UI, follow these steps:
- Navigate to Integrations > Alert Methods.
- Click .
- Click the relevant Alert Method icon.
Then, in the MS Teams Configuration Wizard:
- Enter the URL.
This is your MS Teams Webhook URL. For more information, refer to the Authentication section.
- Select a Project.
Specifying a project is helpful when multiple users are spread across multiple teams or projects. When the Project field is left blank, Nobl9 uses thedefault
project. - Enter a Display Name.
You can enter a user-friendly name with spaces in this field. - Enter a Name.
The name is mandatory and can only contain lowercase, alphanumeric characters, and dashes (for example,my-alert-method-1
). Nobl9 duplicates the display name here, transforming it into the supported format, but you can edit the result. - Enter a Description.
Here you can add details such as who is responsible for the integration (team/owner) and the purpose of creating it. - Click Add Alert Method
YAML configuration for MS Teams alertsβ
- YAML
- Example
Hereβs a general specification for adding an MS Teams alert method through YAML:
apiVersion: n9/v1alpha
kind: AlertMethod
metadata:
name: # string
displayName: # string
project: # string
spec:
description: # string
msteams:
url: # string, requires https://, secret field
Here's an example of MS Teams configuration through YAML:
apiVersion: n9/v1alpha
kind: AlertMethod
metadata:
name: teams-notification
displayName: MSTeams notification
project: default
spec:
description: Send message to MS Teams channel
msteams:
url: <https://webhook.office.com/webhookb2/12345>
The only field that is specific to MS Teams is url
. This field is kept secret and will be replaced with the [hidden]
string when returned from sloctl
. The https://
prefix is required.
Testing the MS Teams alert method in the UIβ
- Navigate to Integrations > Alert Methods.
- Click the required alert method.
Its Details page opens. - Click Test under the alert method name:
- For the correct configuration, Nobl9 displays Test completed successfully! under the button
- Otherwise, Nobl9 displays the Test failed message, specifying what is set incorrectly