mirror of
https://github.com/prometheus/alertmanager.git
synced 2026-02-05 15:45:34 +01:00
Merge pull request #22 from prometheus/optional-generator-url
Treat `GeneratorURL` as optional in Alerts page.
This commit is contained in:
@@ -46,7 +46,11 @@
|
||||
</td>
|
||||
<td>{{timeSince .Created}} ago</td>
|
||||
<td>{{timeSince .LastRefreshed}} ago</td>
|
||||
<td><a href="{{.Alert.Payload.GeneratorURL}}">{{(truncate .Alert.Payload.GeneratorURL 40)}}</a></td>
|
||||
<td>
|
||||
{{if .Alert.Payload.GeneratorURL}}
|
||||
<a href="{{.Alert.Payload.GeneratorURL}}">{{(truncate .Alert.Payload.GeneratorURL 40)}}</a>
|
||||
{{end}}
|
||||
</td>
|
||||
<td>{{.Alert.Payload.AlertingRule}}</td>
|
||||
<td>
|
||||
{{$silence := call $silenceForAlert .Alert}}
|
||||
|
||||
Reference in New Issue
Block a user