mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-12 17:36:34 +00:00
12585e91c0
This commit keeps the alert filters synchronized with URL search parameters so they can be shared.
28 lines
874 B
HTML
28 lines
874 B
HTML
<form id="filter-alerts" method="post" action="" class="forms">
|
|
<fieldset>
|
|
<legend>Filter</legend>
|
|
|
|
<label>Receivers</label>
|
|
<select name="select-multi" class="width-2" ng-model="receivers" multiple="multiple"
|
|
ng-options="r for r in allReceivers track by r">
|
|
</select>
|
|
</fieldset>
|
|
</form>
|
|
|
|
<div id="alert-groups">
|
|
<div class="alert-group" ng-repeat="group in groups | filter:notEmpty">
|
|
<div class="alert-group-header group">
|
|
<span ng-repeat="(ln, lv) in group.labels" class="lbl {{ ln == 'alertname' ? 'lbl-highlight' : '' }}">
|
|
{{ ln }} = '{{ lv }}'
|
|
</span>
|
|
</div>
|
|
|
|
<div ng-repeat="blk in group.blocks">
|
|
<div ng-show="receivers.indexOf(blk.routeOpts.receiver) >= 0" ng-show"blk.alerts">
|
|
<div ng-repeat="a in blk.alerts">
|
|
<alert class="list-item" alert="a" group="group.labels"></alert>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |