mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-16 18:47:10 +00:00
Merge pull request #319 from mpchadwick/filter-silenced
Add a filter to hide silenced alerts
This commit is contained in:
commit
6493dd5cfd
@ -83,7 +83,7 @@ func templateDefaultTmpl() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "template/default.tmpl", size: 15667, mode: os.FileMode(420), modTime: time.Unix(1461746522, 0)}
|
||||
info := bindataFileInfo{name: "template/default.tmpl", size: 15667, mode: os.FileMode(420), modTime: time.Unix(1461810859, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
|
@ -52,7 +52,9 @@ a.gen-link button {
|
||||
width: 100%;
|
||||
min-width: 400px;
|
||||
}
|
||||
|
||||
#alert-groups.hide-silenced .alert-item.silenced {
|
||||
display: none;
|
||||
}
|
||||
.alert-group {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="alert-item" ng-controller="AlertCtrl">
|
||||
<div class="alert-item" ng-controller="AlertCtrl" ng-class="{silenced: alert.silenced}">
|
||||
<div class="overview group">
|
||||
<div class="btn-group details expand">
|
||||
<button ng-show="showDetails" ng-click="toggleDetails()" type="primary" small>–</button>
|
||||
|
@ -2,14 +2,26 @@
|
||||
<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>
|
||||
<blocks cols="2">
|
||||
<div>
|
||||
<section>
|
||||
<label>Receivers</label>
|
||||
<select name="select-multi" class="width-6" ng-model="receivers" multiple="multiple"
|
||||
ng-options="r for r in allReceivers track by r">
|
||||
</select>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<section>
|
||||
<label class="checkbox"><input type="checkbox" ng-model="hideSilenced"> Hide silenced</label>
|
||||
</section>
|
||||
</div>
|
||||
</blocks>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<div id="alert-groups">
|
||||
<div id="alert-groups" ng-class="{'hide-silenced': hideSilenced}">
|
||||
<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' : '' }}">
|
||||
|
126
ui/bindata.go
126
ui/bindata.go
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user