prometheus/web/ui/templates/rules.html
2017-11-22 15:22:02 +00:00

31 lines
868 B
HTML

{{define "head"}}
<link type="text/css" rel="stylesheet" href="{{ pathPrefix }}/static/css/rules.css?v={{ buildVersion }}">
{{end}}
{{define "content"}}
<div class="container-fluid">
<table class="table table-bordered">
{{range .RuleGroups}}
<thead>
<tr>
<td><h2>{{.Name}}</h2></td>
<td><h2>{{humanizeDuration .GetEvaluationTimeSeconds}}</h2></td>
</tr>
</thead>
<tbody>
<tr>
<td style="font-weight:bold">Rule</td>
<td style="font-weight:bold">Evaluation Time</td>
</tr>
{{range .Rules}}
<tr>
<td class="rule_cell">{{.HTMLSnippet pathPrefix}}</td>
<td>{{humanizeDuration .GetEvaluationTimeSeconds}}</td>
</tr>
{{end}}
</tbody>
{{end}}
</table>
</div>
{{end}}