mattermost: flatten attachments into top-level config, keep BC#5009
mattermost: flatten attachments into top-level config, keep BC#5009madest92 wants to merge 4 commits intoprometheus:mainfrom
Conversation
Signed-off-by: Kliachin Aleksei <madest92@gmail.com>
|
Why is asset/assets_vfsdata.go here? |
That does not sound good to me |
I updated the templates. Without this, alertmanager would not see new templates. |
I know. Me too. But the current configuration isn't convenient via attachments. I still use slack_configs. Mattermost was introduced not long ago, so I don't think it's a big problem. |
That is not a good excuse, we need to make changes backwards compatible. |
Agreed. I'll make it backwards compatible. |
Signed-off-by: Kliachin Aleksei <madest92@gmail.com>
Signed-off-by: Kliachin Aleksei <madest92@gmail.com>
7ce9300 to
a14e95b
Compare
cf5abd4 to
4bfff01
Compare


This PR refactors the Mattermost receiver configuration by flattening the attachment structure(like slack_configs).
Previously, message formatting required configuring fields inside
attachments[0].Now, commonly used fields such as
title, title_link, color, and textare promoted to the top level ofmattermost_configs.Additionally, more default templates are provided to reduce the need for repetitive manual configuration.
Example with default template:
Breaking change
This change modifies the configuration schema of
mattermost_configs.Old configuration:
New configuration:
Users must update existing configurations accordingly.