mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-17 11:04:05 -08:00
e94503ff5c
* Adding TSDB Head Stats like cardinality to Status Page Signed-off-by: Sharad Gaur <sgaur@splunk.com> * Moving mutx to Head Signed-off-by: Sharad Gaur <sgaur@splunk.com> * Renaming variabls Signed-off-by: Sharad Gaur <sgaur@splunk.com> * Renaming variabls and html Signed-off-by: Sharad Gaur <sgaur@splunk.com> * Removing unwanted whitespaces Signed-off-by: Sharad Gaur <sgaur@splunk.com> * Adding Tests, Banchmarks and Max Heap for Postings Stats Signed-off-by: Sharad Gaur <sgaur@splunk.com> * Adding more tests for postingstats and web handler Signed-off-by: Sharad Gaur <sgaur@splunk.com> * Adding more tests for postingstats and web handler Signed-off-by: Sharad Gaur <sgaur@splunk.com> * Remove generated asset file that is no longer used Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com> * Changing comment and variable name for more readability Signed-off-by: Sharad Gaur <sgaur@splunk.com> * Using time.Duration in postings status function and removing refresh button from web page Signed-off-by: Sharad Gaur <sgaur@splunk.com>
176 lines
4.9 KiB
HTML
176 lines
4.9 KiB
HTML
{{define "head"}}<!-- nix -->{{end}}
|
|
|
|
{{define "content"}}
|
|
<div class="container-fluid">
|
|
<h2 id="runtime">Runtime Information</h2>
|
|
<table class="table table-sm 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>
|
|
<tr{{if not .ReloadConfigSuccess}} class="danger"{{end}}>
|
|
<th>Configuration reload</th>
|
|
<td>{{if .ReloadConfigSuccess}}Successful{{else}}Failed{{end}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Last successful configuration reload</th>
|
|
<td>{{.LastConfigTime.UTC}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>WAL corruptions</th>
|
|
<td>{{.CorruptionCount}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Goroutines</th>
|
|
<td>{{.GoroutineCount}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>GOMAXPROCS</th>
|
|
<td>{{.GOMAXPROCS}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>GOGC</th>
|
|
<td>{{.GOGC}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>GODEBUG</th>
|
|
<td>{{.GODEBUG}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Storage Retention</th>
|
|
<td>{{.StorageRetention}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<h2 id="buildinformation">Build Information</h2>
|
|
<table class="table table-sm 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-sm 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>
|
|
|
|
<h2 id="headstatus">Head Stats</h2>
|
|
<table class="table table-sm table-bordered table-striped table-hover">
|
|
<tbody>
|
|
<tr>
|
|
<th>Number Of Series </th>
|
|
<th>Number of Chunks</th>
|
|
<th>Current Max Time</th>
|
|
<th>Current Min Time</th>
|
|
</tr>
|
|
<tr>
|
|
<td scope="row">{{ .NumSeries}}</th>
|
|
<td>{{.ChunkCount}}</td>
|
|
<td>{{ .MaxTime}}</td>
|
|
<td>{{ .MinTime}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div>Total Query Time: {{ .Duration }} Seconds</div>
|
|
<h3 id="headstatus">Highest Cardinality Labels </h3>
|
|
<table class="table table-sm table-bordered table-striped table-hover">
|
|
<tbody>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Count</th>
|
|
</tr>
|
|
{{ range .Stats.CardinalityLabelStats }}
|
|
<tr>
|
|
<td scope="row">{{.Name}}</th>
|
|
<td>{{.Count}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
<h3 id="headstatus">Highest Cardinality Metric Names</h3>
|
|
<table class="table table-sm table-bordered table-striped table-hover">
|
|
<tbody>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Count</th>
|
|
</tr>
|
|
{{ range .Stats.CardinalityMetricsStats }}
|
|
<tr>
|
|
<td scope="row">{{.Name}}</th>
|
|
<td>{{.Count}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
<h3 id="headstatus">Label Names With Highest Cumulative Label Value Length</h3>
|
|
<table class="table table-sm table-bordered table-striped table-hover">
|
|
<tbody>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Length</th>
|
|
</tr>
|
|
{{ range .Stats.LabelValueStats }}
|
|
<tr>
|
|
<td scope="row">{{.Name}}</th>
|
|
<td>{{.Count}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
<h3 id="headstatus">Most Common Label Pairs</h3>
|
|
<table class="table table-sm table-bordered table-striped table-hover">
|
|
<tbody>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Count</th>
|
|
</tr>
|
|
{{ range .Stats.LabelValuePairsStats }}
|
|
<tr>
|
|
<td scope="row">{{.Name}}</th>
|
|
<td>{{.Count}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{end}}
|