prometheus/web/templates/status.html
Matt T. Proud 0d2d6e9a27 Include uptime in the status console.
In order to help corroborate whether a Prometheus instance has
flapped until meta-monitoring is in-place, we ought to provide the
instance's start time in the console to aid in diagnostics.
2013-05-24 10:44:34 +02:00

100 lines
2.2 KiB
HTML

{{define "head"}}<!-- nix -->{{end}}
{{define "content"}}
<h2>Runtime Information</h2>
<div class="grouping_box">
<table>
<tbody>
<tr>
<th>Uptime</th>
<td>{{.Birth}}</td>
</tr>
</tbody>
</table>
</div>
<h2>Build Information</h2>
<div class="grouping_box">
<table>
<tbody>
{{range $key, $value := .BuildInfo}}
<tr>
<th scope="row">{{$key}}</th>
<td>{{$value}}</td>
</tr>
{{end}}
</tbody>
</table>
</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}})
{{if .LastError}}
<br/>
<span class="error_text"><b>Scrape error:</b> "{{.LastError}}"</span>
{{end}}
</li>
{{end}}
</ul>
</li>
{{end}}
</ul>
</div>
<h2>Curation</h2>
<div class="grouping_box">
<table>
<tr>
<th>Active</th>
<td>{{.Curation.Active}}</td>
</tr>
{{if .Curation.Active}}
<tr>
<th>Processor Name</th>
<td>{{.Curation.Name}}</td>
</tr>
<tr>
<th>Recency Limit</th>
<td>{{.Curation.Limit}}</td>
</tr>
<tr>
<th>Current Fingerprint</th>
<td>{{.Curation.Fingerprint}}</td>
</tr>
{{end}}
</table>
</div>
<h2>Startup Flags</h2>
<div class="grouping_box">
<table>
<tbody>
{{range $key, $value := .Flags}}
<tr>
<th scope="row">{{$key}}</th>
<td>{{$value}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{end}}