mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-28 17:12:13 +00:00
Merge pull request #3201 from prometheus/document-discord-notifier
Add missing docs for Discord notifier
This commit is contained in:
commit
9aa5974c08
@ -536,6 +536,8 @@ telegram_configs:
|
||||
[ - <telegram_config>, ... ]
|
||||
webex_configs:
|
||||
[ - <webex_config>, ... ]
|
||||
discord_configs:
|
||||
[ - <discord_config>, ... ]
|
||||
```
|
||||
|
||||
## `<email_config>`
|
||||
@ -1151,3 +1153,24 @@ room_id: <string>
|
||||
# The HTTP client's configuration. You must use this configuration to supply the bot token as part of the HTTP `Authorization` header.
|
||||
[ http_config: <http_config> | default = global.http_config ]
|
||||
```
|
||||
|
||||
## `<discord_config>`
|
||||
|
||||
Discord notifications are sent via the [Discord webhook API](https://discord.com/developers/docs/resources/webhook). See Discord's ["Intro to Webhooks" article](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) to learn how to configure a webhook integration for a channel.
|
||||
|
||||
```yaml
|
||||
# Whether to notify about resolved alerts.
|
||||
[ send_resolved: <boolean> | default = true ]
|
||||
|
||||
# The Discord webhook URL.
|
||||
webhook_url: <secret>
|
||||
|
||||
# Message title template.
|
||||
[ title: <tmpl_string> | default = '{{ template "discord.default.title" . }}' ]
|
||||
|
||||
# Message body template.
|
||||
[ message: <tmpl_string> | default = '{{ template "discord.default.message" . }}' ]
|
||||
|
||||
# The HTTP client's configuration.
|
||||
[ http_config: <http_config> | default = global.http_config ]
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user