Debian Codegraph @

debian/missing-sources/ui/templates/status.html

raw
1 {{define "head"}}<!-- nix -->{{end}}
2
3 {{define "content"}}
4 <div class="container-fluid">
5 <h2 id="runtime">Runtime Information</h2>
6 <table class="table table-sm table-bordered table-striped table-hover">
7 <tbody>
8 <tr>
9 <th>Uptime</th>
10 <td>{{.Birth}}</td>
11 </tr>
12 <tr>
13 <th>Working Directory</th>
14 <td>{{.CWD}}</td>
15 </tr>
16 <tr{{if not .ReloadConfigSuccess}} class="danger"{{end}}>
17 <th>Configuration reload</th>
18 <td>{{if .ReloadConfigSuccess}}Successful{{else}}Failed{{end}}</td>
19 </tr>
20 <tr>
21 <th>Last successful configuration reload</th>
22 <td>{{.LastConfigTime}}</td>
23 </tr>
24 <tr>
25 <th>WAL corruptions</th>
26 <td>{{.CorruptionCount}}</td>
27 </tr>
28 <tr>
29 <th>Goroutines</th>
30 <td>{{.GoroutineCount}}</td>
31 </tr>
32 <tr>
33 <th>GOMAXPROCS</th>
34 <td>{{.GOMAXPROCS}}</td>
35 </tr>
36 <tr>
37 <th>GOGC</th>
38 <td>{{.GOGC}}</td>
39 </tr>
40 <tr>
41 <th>GODEBUG</th>
42 <td>{{.GODEBUG}}</td>
43 </tr>
44 <tr>
45 <th>Storage Retention</th>
46 <td>{{.StorageRetention}}</td>
47 </tr>
48 </tbody>
49 </table>
50
51 <h2 id="buildinformation">Build Information</h2>
52 <table class="table table-sm table-bordered table-striped table-hover">
53 <tbody>
54 <tr>
55 <th scope="row">Version</th>
56 <td>{{.Version.Version}}</td>
57 </tr>
58 <tr>
59 <th scope="row">Revision</th>
60 <td>{{.Version.Revision}}</td>
61 </tr>
62 <tr>
63 <th scope="row">Branch</th>
64 <td>{{.Version.Branch}}</td>
65 </tr>
66 <tr>
67 <th scope="row">BuildUser</th>
68 <td>{{.Version.BuildUser}}</td>
69 </tr>
70 <tr>
71 <th scope="row">BuildDate</th>
72 <td>{{.Version.BuildDate}}</td>
73 </tr>
74 <tr>
75 <th scope="row">GoVersion</th>
76 <td>{{.Version.GoVersion}}</td>
77 </tr>
78 </tbody>
79 </table>
80
81 <h2 id="alertmanagers">Alertmanagers</h2>
82 <table class="table table-sm table-bordered table-striped table-hover">
83 <tbody>
84 <tr>
85 <th>Endpoint</th>
86 </tr>
87 {{range .Alertmanagers}}
88 <tr>
89 {{/* Alertmanager URLs always have Scheme, Host and Path set */}}
90 <td>{{.Scheme}}://<a href="{{.Scheme}}://{{.Host}}">{{.Host}}</a>{{.Path}}</td>
91 </tr>
92 {{end}}
93 </tbody>
94 </table>
95
96 <h2 id="headstatus">Head Stats</h2>
97 <table class="table table-sm table-bordered table-striped table-hover">
98 <tbody>
99 <tr>
100 <th>Number Of Series </th>
101 <th>Number of Chunks</th>
102 <th>Current Min Time</th>
103 <th>Current Max Time</th>
104 </tr>
105 <tr>
106 <td scope="row">{{ .NumSeries}}</td>
107 <td>{{.ChunkCount}}</td>
108 <td>{{ .MinTime | unixToTime }} ({{ .MinTime }})</td>
109 <td>{{ .MaxTime | unixToTime }} ({{ .MaxTime }})</td>
110 </tr>
111 </tbody>
112 </table>
113 <div>Total Query Time: {{ .Duration }} Seconds</div>
114 <h3 id="headstatus">Highest Cardinality Labels </h3>
115 <table class="table table-sm table-bordered table-striped table-hover">
116 <tbody>
117 <tr>
118 <th>Name</th>
119 <th>Count</th>
120 </tr>
121 {{ range .Stats.CardinalityLabelStats }}
122 <tr>
123 <td scope="row">{{.Name}}</td>
124 <td>{{.Count}}</td>
125 </tr>
126 {{end}}
127 </tbody>
128 </table>
129 <h3 id="headstatus">Highest Cardinality Metric Names</h3>
130 <table class="table table-sm table-bordered table-striped table-hover">
131 <tbody>
132 <tr>
133 <th>Name</th>
134 <th>Count</th>
135 </tr>
136 {{ range .Stats.CardinalityMetricsStats }}
137 <tr>
138 <td scope="row">{{.Name}}</td>
139 <td>{{.Count}}</td>
140 </tr>
141 {{end}}
142 </tbody>
143 </table>
144 <h3 id="headstatus">Label Names With Highest Cumulative Label Value Length</h3>
145 <table class="table table-sm table-bordered table-striped table-hover">
146 <tbody>
147 <tr>
148 <th>Name</th>
149 <th>Length</th>
150 </tr>
151 {{ range .Stats.LabelValueStats }}
152 <tr>
153 <td scope="row">{{.Name}}</td>
154 <td>{{.Count}}</td>
155 </tr>
156 {{end}}
157 </tbody>
158 </table>
159 <h3 id="headstatus">Most Common Label Pairs</h3>
160 <table class="table table-sm table-bordered table-striped table-hover">
161 <tbody>
162 <tr>
163 <th>Name</th>
164 <th>Count</th>
165 </tr>
166 {{ range .Stats.LabelValuePairsStats }}
167 <tr>
168 <td scope="row">{{.Name}}</td>
169 <td>{{.Count}}</td>
170 </tr>
171 {{end}}
172 </tbody>
173 </table>
174 </div>
175 {{end}}