Hi guys,
It would be really cool to have a possibility to create email templates (or kind of predefined parts of emails) in Alert Manager.
Here is my challenge:
I am using a lot of alerts, many of them have similar parts of message body, such as node details, application details, contacts, disclaimers, etc. If I decide to change something to be more usable within email body, then for consistency purpose I have to go though every single alert to do the same.
Here is what would be really cool:
1. Define Email Body Snippets (templates/parts of the email/email variables/call it whatever you like):
[NODE DETAILS]
### Node ###
Name: ${Node.Caption} (${Node.IP_Address})
Description: ${Node.AssetDescription}
Comments: ${Node.Comments}
IT Contact: ${Node.ContactName}
Status: ${Node.Status}
Last Boot: ${Node.LastBoot}
[COMPONENT DETAILS]
### Component ###
Name: ${ComponentName}
Statistic: ${StatisticData}
Message: ${ComponentMessage}
Notes: ${UserNotes}
[DISCLAIMER_1]
Please resolve ASAP ...
[CONTACT_1]
3rd party support contact nr.: 0123456789
Option 3, ask James
2. Construct body for new Email Alerts using the above snippets:
3. Receive nice and consistent alerts like this (real life example):
--
Alex