vmalert: add hints to filter buttons (#4296)

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2023-05-11 16:38:08 +02:00 committed by GitHub
parent bb7a295146
commit adc5635a07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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 {