Alerting: Add support for msteams contact point in external Alertmanagers (#76392)

* Add support for msteams contact point in external AMs

* Update docs
This commit is contained in:
Alexander Weaver 2023-10-13 10:43:42 -05:00 committed by GitHub
parent 520497738e
commit 0592fe7edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 2 deletions

View File

@ -47,7 +47,7 @@ The following table lists the contact point integrations supported by Grafana.
| [Google Chat](https://chat.google.com/) | `googlechat` | Supported | N/A |
| [Kafka](https://kafka.apache.org/) | `kafka` | Supported | N/A |
| [Line](https://line.me/en/) | `line` | Supported | N/A |
| [Microsoft Teams](https://teams.microsoft.com/) | `teams` | Supported | N/A |
| [Microsoft Teams](https://teams.microsoft.com/) | `teams` | Supported | Supported |
| [Opsgenie](https://atlassian.com/opsgenie/) | `opsgenie` | Supported | Supported |
| [Pagerduty](https://www.pagerduty.com/) | `pagerduty` | Supported | Supported |
| [Prometheus Alertmanager](https://prometheus.io) | `prometheus-alertmanager` | Supported | N/A |

View File

@ -491,6 +491,22 @@ export const cloudNotifierTypes: Array<NotifierDTO<CloudNotifierType>> = [
}),
],
},
{
name: 'Microsoft Teams',
description: 'Sends notifications to Microsoft Teams',
type: 'msteams',
info: '',
heading: 'Microsoft Teams settings',
options: [
option('webhook_url', 'Webhook URL', 'The incoming webhook URL.'),
option('title', 'Title', 'Message title template.', {
placeholder: '{{ template "teams.default.title" . }}',
}),
option('text', 'Text', 'Message body template.', {
placeholder: '{{ template "teams.default.text" . }}',
}),
],
},
];
export const globalConfigOptions: NotificationChannelOption[] = [

View File

@ -10,4 +10,5 @@ export const receiverTypeNames: Record<string, string> = {
webex: 'Cisco Webex Teams',
sns: 'Amazon SNS',
telegram: 'Telegram',
msteams: 'Microsoft Teams',
};

View File

@ -71,7 +71,8 @@ export type CloudNotifierType =
| 'webex'
| 'telegram'
| 'sns'
| 'discord';
| 'discord'
| 'msteams';
export type NotifierType = GrafanaNotifierType | CloudNotifierType;
export interface NotifierDTO<T = NotifierType> {