mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 14:09:41 -08:00
795c989d36
Signed-off-by: Julius Volz <julius.volz@gmail.com>
35 lines
1.3 KiB
HTML
35 lines
1.3 KiB
HTML
{{ template "head" . }}
|
|
|
|
{{ template "prom_right_table_head" }}
|
|
<tr>
|
|
<th>Prometheus</th>
|
|
<th>{{ template "prom_query_drilldown" (args "sum(up{job='prometheus'})") }} / {{ template "prom_query_drilldown" (args "count(up{job='prometheus'})") }}</th>
|
|
</tr>
|
|
{{ template "prom_right_table_tail" }}
|
|
|
|
{{ template "prom_content_head" . }}
|
|
<h1>Prometheus</h1>
|
|
|
|
<table class="table table-sm table-striped table-bordered" style="width: 0%">
|
|
<tr>
|
|
<th>Prometheus</th>
|
|
<th>Up</th>
|
|
<th>Ingested Samples</th>
|
|
<th>Memory</th>
|
|
</tr>
|
|
{{ range query "up{job='prometheus'}" | sortByLabel "instance" }}
|
|
<tr>
|
|
<td><a href="prometheus-overview.html?instance={{ .Labels.instance }}">{{ .Labels.instance }}</a></td>
|
|
<td {{ if eq (. | value) 1.0 }}>Yes{{ else }} class="alert-danger">No{{ end }}</td>
|
|
<td class="text-right">{{ template "prom_query_drilldown" (args (printf "irate(prometheus_tsdb_head_samples_appended_total{job='prometheus',instance='%s'}[5m])" .Labels.instance) "/s" "humanizeNoSmallPrefix") }}</td>
|
|
<td class="text-right">{{ template "prom_query_drilldown" (args (printf "process_resident_memory_bytes{job='prometheus',instance='%s'}" .Labels.instance) "B" "humanize1024")}}</td>
|
|
</tr>
|
|
{{ else }}
|
|
<tr><td colspan=4>No devices found.</td></tr>
|
|
{{ end }}
|
|
</table>
|
|
|
|
{{ template "prom_content_tail" . }}
|
|
|
|
{{ template "tail" }}
|