prometheus/web/ui/templates/status.html

66 lines
1.7 KiB
HTML

{{define "head"}}<!-- nix -->{{end}}
{{define "content"}}
<div class="container-fluid">
<h2 id="runtime">Runtime Information</h2>
<table class="table table-condensed table-bordered table-striped table-hover">
<tbody>
<tr>
<th>Uptime</th>
<td>{{.Birth.UTC}}</td>
</tr>
<tr>
<th>Working Directory</th>
<td>{{.CWD}}</td>
</tr>
</tbody>
</table>
<h2 id="buildinformation">Build Information</h2>
<table class="table table-condensed table-bordered table-striped table-hover">
<tbody>
<tr>
<th scope="row">Version</th>
<td>{{.Version.Version}}</td>
</tr>
<tr>
<th scope="row">Revision</th>
<td>{{.Version.Revision}}</td>
</tr>
<tr>
<th scope="row">Branch</th>
<td>{{.Version.Branch}}</td>
</tr>
<tr>
<th scope="row">BuildUser</th>
<td>{{.Version.BuildUser}}</td>
</tr>
<tr>
<th scope="row">BuildDate</th>
<td>{{.Version.BuildDate}}</td>
</tr>
<tr>
<th scope="row">GoVersion</th>
<td>{{.Version.GoVersion}}</td>
</tr>
</tbody>
</table>
<h2 id="alertmanagers">Alertmanagers</h2>
<table class="table table-condensed table-bordered table-striped table-hover">
<tbody>
<tr>
<th>Endpoint</th>
</tr>
{{range .Alertmanagers}}
<tr>
{{/* Alertmanager URLs always have Scheme, Host and Path set */}}
<td>{{.Scheme}}://<a href="{{.Scheme}}://{{.Host}}">{{.Host}}</a>{{.Path}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{end}}