mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
vmalert: add hints to filter buttons (#4296)
Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
bb7a295146
commit
adc5635a07
2 changed files with 4 additions and 4 deletions
|
@ -73,8 +73,8 @@ btn-primary
|
|||
<a class="btn {%= buttonActive(filter, "") %}" role="button" onclick="window.location = window.location.pathname">All</a>
|
||||
<a class="btn btn-primary" role="button" onclick="collapseAll()">Collapse All</a>
|
||||
<a class="btn btn-primary" role="button" onclick="expandAll()">Expand All</a>
|
||||
<a class="btn {%= buttonActive(filter, "unhealthy") %}" role="button" onclick="location.href='?filter=unhealthy'">Unhealthy</a>
|
||||
<a class="btn {%= buttonActive(filter, "noMatch") %}" role="button" onclick="location.href='?filter=noMatch'">NoMatch</a>
|
||||
<a class="btn {%= buttonActive(filter, "unhealthy") %}" role="button" onclick="location.href='?filter=unhealthy'" title="Show only rules with errors">Unhealthy</a>
|
||||
<a class="btn {%= buttonActive(filter, "noMatch") %}" role="button" onclick="location.href='?filter=noMatch'" title="Show only rules matching no time series during last evaluation">NoMatch</a>
|
||||
{% if len(groups) > 0 %}
|
||||
{% for _, g := range groups %}
|
||||
<div
|
||||
|
|
|
@ -253,12 +253,12 @@ func StreamListGroups(qw422016 *qt422016.Writer, r *http.Request, originGroups [
|
|||
//line app/vmalert/web.qtpl:76
|
||||
streambuttonActive(qw422016, filter, "unhealthy")
|
||||
//line app/vmalert/web.qtpl:76
|
||||
qw422016.N().S(`" role="button" onclick="location.href='?filter=unhealthy'">Unhealthy</a>
|
||||
qw422016.N().S(`" role="button" onclick="location.href='?filter=unhealthy'" title="Show only rules with errors">Unhealthy</a>
|
||||
<a class="btn `)
|
||||
//line app/vmalert/web.qtpl:77
|
||||
streambuttonActive(qw422016, filter, "noMatch")
|
||||
//line app/vmalert/web.qtpl:77
|
||||
qw422016.N().S(`" role="button" onclick="location.href='?filter=noMatch'">NoMatch</a>
|
||||
qw422016.N().S(`" role="button" onclick="location.href='?filter=noMatch'" title="Show only rules matching no time series during last evaluation">NoMatch</a>
|
||||
`)
|
||||
//line app/vmalert/web.qtpl:78
|
||||
if len(groups) > 0 {
|
||||
|
|
Loading…
Reference in a new issue