mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 15:44:05 -08:00
8763dedb9d
Fixes https://github.com/prometheus/prometheus/issues/4407 Signed-off-by: Julius Volz <julius.volz@gmail.com>
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
{{define "head"}}
|
|
<link type="text/css" rel="stylesheet" href="{{ pathPrefix }}/static/css/rules.css?v={{ buildVersion }}">
|
|
{{end}}
|
|
|
|
{{define "content"}}
|
|
<div class="container-fluid">
|
|
<h2>Rules</h2>
|
|
<table class="table table-bordered">
|
|
{{range .RuleGroups}}
|
|
<thead>
|
|
<tr>
|
|
<td><h2><a href="#{{reReplaceAll "([^a-zA-Z0-9])" "$1" .Name}}" name="{{reReplaceAll "([^a-zA-Z0-9])" "$1" .Name}}">{{.Name}}</h2></td>
|
|
<td><h2>{{humanizeDuration .GetEvaluationDuration.Seconds}}</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 .GetEvaluationDuration.Seconds}}</td>
|
|
</tr>
|
|
{{end}}
|
|
{{else}}
|
|
<tr>
|
|
<td>
|
|
No rules defined
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{end}}
|