diff --git a/docs/configuration.md b/docs/configuration.md index 0fe39e46..a147d210 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -536,6 +536,8 @@ telegram_configs: [ - , ... ] webex_configs: [ - , ... ] +discord_configs: + [ - , ... ] ``` ## `` @@ -1151,3 +1153,24 @@ room_id: # The HTTP client's configuration. You must use this configuration to supply the bot token as part of the HTTP `Authorization` header. [ http_config: | default = global.http_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: | default = true ] + +# The Discord webhook URL. +webhook_url: + +# Message title template. +[ title: | default = '{{ template "discord.default.title" . }}' ] + +# Message body template. +[ message: | default = '{{ template "discord.default.message" . }}' ] + +# The HTTP client's configuration. +[ http_config: | default = global.http_config ] +```