Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Templates #19

Open
crooks opened this issue Jul 9, 2021 · 2 comments
Open

Custom Templates #19

crooks opened this issue Jul 9, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@crooks
Copy link

crooks commented Jul 9, 2021

Motivation
The Alertmanager messages displayed in Mattermost each take up a lot of screen space. I'd like to be able to customize the message so it provides a short summary, something like:
alertname=InstanceDown, instance=hostname, severity=warning
If colour could be use to denote Firing or Resolved, that would be ideal.

Feature
Ability to customize the output format of generated Mattermost messages. The Slack integration appears to include options for customized Go templates but I don't think this can be done with the webhook_config integration.

Additional context
The following blog post provides some examples of custom templates but I don't see a way to integrate these with the webhook_config.
https://prometheus.io/blog/2016/03/03/custom-alertmanager-templates/

@jangrewe
Copy link

I would love to see this, too. Right now push notifications only tell me there was a message from a webhook in a channel, but not any of the contents. At least a header line with the summary would be nice.

@cpanato cpanato added the help wanted Extra attention is needed label Nov 26, 2021
@cpanato
Copy link
Owner

cpanato commented Nov 26, 2021

sounds a nice addition, are you willing to open a pr to add that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants