mirror of
https://github.com/grafana/grafana.git
synced 2024-12-27 09:21:35 -06:00
802d67eeca
We have received a lot of feedback regarding the ValueString in alert notifications. Perhaps one of the most frequent complaints about ValueString is that it is difficult to read because it contains a lot of information, and the information is shown as a JSON-like string. Users have often asked how it can be templated and the answer is that it can't. Until now users have been able to add custom annotations to their alert rules which contains values via the $values variable added in previous versions of Grafana. However, these custom annotations must be added for each of the user's alert rule, instead of once in a template that all of their alerts can be notified via. This commit adds then the much requested feature to support values in notification templates. Users can then create a single template that prints the annotations, labels and values of their alerts in a format of their choice! |
||
---|---|---|
.. | ||
assets/css | ||
grunt | ||
templates | ||
gruntfile.js | ||
package.json | ||
README.md |
Prerequisites
- npm install
- gem install premailer
Tasks
- npm run build (default task will build new inlines email templates)
- npm start (builds on source HTML, text, or CSS change)
Result
Assembled email templates will be in dist/
and final
inlined templates will be in ../public/emails/