mirror of
https://github.com/prometheus/prometheus
synced 2024-12-29 02:02:17 +00:00
Move build info to the top of the status HUD.
This commit is contained in:
parent
30f0239f96
commit
04e661c28f
@ -24,7 +24,6 @@ import (
|
|||||||
type PrometheusStatus struct {
|
type PrometheusStatus struct {
|
||||||
Config string
|
Config string
|
||||||
Rules string
|
Rules string
|
||||||
Status string
|
|
||||||
TargetPools map[string]*retrieval.TargetPool
|
TargetPools map[string]*retrieval.TargetPool
|
||||||
BuildInfo map[string]string
|
BuildInfo map[string]string
|
||||||
Flags map[string]string
|
Flags map[string]string
|
||||||
@ -46,7 +45,6 @@ func (h *StatusHandler) Run() {
|
|||||||
h.PrometheusStatus = &PrometheusStatus{
|
h.PrometheusStatus = &PrometheusStatus{
|
||||||
Config: h.appState.Config.String(),
|
Config: h.appState.Config.String(),
|
||||||
Rules: "TODO: list rules here",
|
Rules: "TODO: list rules here",
|
||||||
Status: "TODO: add status information here",
|
|
||||||
TargetPools: h.appState.TargetManager.Pools(),
|
TargetPools: h.appState.TargetManager.Pools(),
|
||||||
BuildInfo: h.appState.BuildInfo,
|
BuildInfo: h.appState.BuildInfo,
|
||||||
Flags: flags,
|
Flags: flags,
|
||||||
|
@ -1,9 +1,18 @@
|
|||||||
{{define "head"}}<!-- nix -->{{end}}
|
{{define "head"}}<!-- nix -->{{end}}
|
||||||
|
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<h2>Status</h2>
|
<h2>Build Info</h2>
|
||||||
<div class="grouping_box">
|
<div class="grouping_box">
|
||||||
{{.Status}}
|
<table>
|
||||||
|
<tbody>
|
||||||
|
{{range $key, $value := .BuildInfo}}
|
||||||
|
<tr>
|
||||||
|
<th scope="row">{{$key}}</th>
|
||||||
|
<td>{{$value}}</td>
|
||||||
|
</tr>
|
||||||
|
{{end}}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Configuration</h2>
|
<h2>Configuration</h2>
|
||||||
@ -59,20 +68,6 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Build Info</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>Startup Flags</h2>
|
<h2>Startup Flags</h2>
|
||||||
<div class="grouping_box">
|
<div class="grouping_box">
|
||||||
<table>
|
<table>
|
||||||
|
Loading…
Reference in New Issue
Block a user