mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-30 07:59:40 -08:00
1a3fb459e0
To achieve that, this PR - converts static/index.html ("console") and graph to templates - moved the handlebars template to separated file to avoid escaping issues Route changes: /status -> / /static -> /console /static/graph.html -> /graph
38 lines
727 B
HTML
38 lines
727 B
HTML
{{define "head"}}<!-- nix -->{{end}}
|
|
|
|
{{define "content"}}
|
|
<h2>Status</h2>
|
|
<div class="grouping_box">
|
|
{{.Status}}
|
|
</div>
|
|
|
|
<h2>Configuration</h2>
|
|
<div class="grouping_box">
|
|
<pre>
|
|
{{.Config}}
|
|
</pre>
|
|
</div>
|
|
|
|
<h2>Rules</h2>
|
|
<div class="grouping_box">
|
|
{{.Rules}}
|
|
</div>
|
|
|
|
<h2>Targets</h2>
|
|
<div class="grouping_box">
|
|
<ul>
|
|
{{range $job, $pool := .TargetPools}}
|
|
<li>{{$job}}
|
|
<ul>
|
|
{{range $pool.Targets}}
|
|
<li>
|
|
<a href="{{.Address}}">{{.Address}}</a> (State: {{.State}}, Base Labels: {{.BaseLabels}})
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
</div>
|
|
{{end}}
|