What Grafana version and what operating system are you using?
Grafana v8.3.4 on Linux RPM
What are you trying to achieve?
I need to redefine the standard “Email notification” template for Unified Alerting within Grafana User Interface.
How are you trying to achieve it?
I am trying to use “Message Templating” functionality for this.
What happened?
Email notification template seem to be impossible to be customized via Grafana User Interface, which is a huge frustration. As a result:
- Not clear at all how to redefine email notification “Subject”
- Not clear at all how to redefine email notification “Body”, when you do not have direct access to Grafana server, which is 99% of the cases, when we speak about big enough organization (it seems to still be possible to replace the template HTML file)
- It is not possible to have different HTML templates for different alerts, which use email as the notification channel.
- Default email notification template is too general and sometimes is completely useless.
What did you expect to happen?
That notification templates are easily configurable, within Grafana UI.
That different “contact points”/“alerts” may be associated with different alert templates.
Did you follow any online instructions? If so, what is the URL?
I used only official Grafana docs, which are not in the ideal state, to be honest:
- Notification templating | Grafana documentation
- https://grafana.com/docs/grafana/latest/alerting/unified-alerting/message-templating/template-data/
So, is there any way to redefine email notification “subject” and “body”?
I suppose the only currently available way to redefince email “body” is to replace the ng_alert_notification.html
file? But still, how do I change the subject?
Is it going to be added to Grafana UI, so HTML templates are also editable there?