Show alerting rules and link back to Prometheus.

This commit is contained in:
Julius Volz 2013-08-09 18:21:29 +02:00
parent b05c4051d7
commit 3d897d43b7

View File

@ -13,6 +13,8 @@
<th>Labels</th>
<th>Active Since</th>
<th>Last Refreshed</th>
<th>Generated By</th>
<th>Alerting Rule</th>
<th>Silenced</th>
</tr>
</thead>
@ -44,6 +46,8 @@
</td>
<td>{{timeSince .Created}} ago</td>
<td>{{timeSince .LastRefreshed}} ago</td>
<td><a href="{{.Event.Payload.GeneratorUrl}}">{{.Event.Payload.GeneratorUrl}}</a></td>
<td>{{.Event.Payload.AlertingRule}}</td>
<td>
{{$silence := call $silenceForEvent .Event}}
{{if $silence}}