mirror of https://github.com/prometheus/prometheus
Add no-op silencing links.
parent
d9f403ab7d
commit
481ee4096b
|
@ -6,6 +6,10 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.silence_children_link {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.alert_rule {
|
.alert_rule {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|
|
@ -9,6 +9,10 @@ function init() {
|
||||||
}
|
}
|
||||||
$(this).next().toggle();
|
$(this).next().toggle();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(".silence_alert_link, .silence_children_link").click(function() {
|
||||||
|
alert("Silencing is not yet supported.");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$(init);
|
$(init);
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
<td>
|
<td>
|
||||||
<div class="alert_description">
|
<div class="alert_description">
|
||||||
<span class="label alert_rule">{{.HTMLSnippet}}</span>
|
<span class="label alert_rule">{{.HTMLSnippet}}</span>
|
||||||
|
<a href="#" class="silence_children_link">Silence All Children…</a>
|
||||||
</div>
|
</div>
|
||||||
{{if $activeAlerts}}
|
{{if $activeAlerts}}
|
||||||
<table class="table table-bordered table-hover table-condensed alert_elements_table">
|
<table class="table table-bordered table-hover table-condensed alert_elements_table">
|
||||||
|
@ -26,6 +27,7 @@
|
||||||
<th>State</th>
|
<th>State</th>
|
||||||
<th>Active Since</th>
|
<th>Active Since</th>
|
||||||
<th>Value</th>
|
<th>Value</th>
|
||||||
|
<th>Silence</th>
|
||||||
</tr>
|
</tr>
|
||||||
{{range $activeAlerts}}
|
{{range $activeAlerts}}
|
||||||
<tr class="{{index $alertStateToRowClass .State}}">
|
<tr class="{{index $alertStateToRowClass .State}}">
|
||||||
|
@ -33,6 +35,7 @@
|
||||||
<td>{{.State}}</td>
|
<td>{{.State}}</td>
|
||||||
<td>{{.ActiveSince}}</td>
|
<td>{{.ActiveSince}}</td>
|
||||||
<td>{{.Value}}</td>
|
<td>{{.Value}}</td>
|
||||||
|
<td><a href="#" class="silence_alert_link">Silence…</button><td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue