mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
14407a076a
Until now, targets pointing to localhost in the status view are linked to localhost, so you can't follow those links by clicking on them. This change converts the links to point to the hostname of the prometheus server. Before: <a href="http://localhost:9090/metrics.json">http://localhost:9090/metrics.json</a> After: <a href="http://hostname-of-prometheus-server:9090/metrics.json">http://localhost:9090/metrics.json</a>
38 lines
733 B
HTML
38 lines
733 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="{{.GlobalAddress}}">{{.Address}}</a> (State: {{.State}}, Base Labels: {{.BaseLabels}})
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
</div>
|
|
{{end}}
|