feat(alerting): list all series in alert email

This commit is contained in:
bergquist
2016-08-13 12:50:51 +02:00
parent c4e905474a
commit fb7a6c0764
4 changed files with 89 additions and 7 deletions
+37 -2
View File
@@ -6,7 +6,7 @@
<table class="twelve columns">
<tr>
<td class="center">
<h3 style="text-align:center;color: [[.SeverityColor]]; font-weight: bold;">[[.Title]]</h3>
<h3 style="/*text-align:center*/;color: [[.SeverityColor]]; font-weight: bold;">[[.Title]]</h3>
</td>
</tr>
</table>
@@ -20,12 +20,46 @@
<table class="twelve columns">
<tr>
<td class="center">
<p style="text-align:center">[[.Message]]</p>
<p style="/*text-align:center*/">[[.Message]]</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
[[if ne .State "ok" ]]
<table class="row" >
<tr>
<td class="wrapper last">
<center>
<table class="twelve columns" >
<tr>
<td class="wrapper last" style="font-weight: bold;">
Metric name
</td>
<td style="font-weight: bold;">
Value
</td>
</tr>
[[range .Events]]
<tr>
<td class="wrapper last">
[[.Metric]]
</td>
<td>
[[.Value]]
</td>
</tr>
[[end]]
</table>
</center>
</td>
</tr>
</table>
[[end]]
<table class="row" >
<tr>
<td class="wrapper last">
<table class="twelve columns">
@@ -39,6 +73,7 @@
</tr>
</table>
<table class="row">
<tr>
<td class="wrapper last">