2015-01-23 09:40:48 -08:00
|
|
|
{{ template "head" . }}
|
2014-11-20 10:41:25 -08:00
|
|
|
|
2015-01-23 09:40:48 -08:00
|
|
|
{{ template "prom_right_table_head" }}
|
2014-11-20 10:41:25 -08:00
|
|
|
<tr>
|
|
|
|
<th>Node</th>
|
|
|
|
<th>{{ template "prom_query_drilldown" (args "sum(up{job='node'})") }} / {{ template "prom_query_drilldown" (args "count(up{job='node'})") }}</th>
|
|
|
|
</tr>
|
2015-01-23 09:40:48 -08:00
|
|
|
{{ template "prom_right_table_tail" }}
|
2014-11-20 10:41:25 -08:00
|
|
|
|
2015-01-23 09:40:48 -08:00
|
|
|
{{ template "prom_content_head" . }}
|
2014-11-20 10:41:25 -08:00
|
|
|
<h1>Node</h1>
|
|
|
|
|
2015-01-22 02:39:41 -08:00
|
|
|
<table class="table table-condensed table-striped table-bordered" style="width: 0%">
|
|
|
|
<tr>
|
|
|
|
<th>Node</th>
|
|
|
|
<th>Up</th>
|
|
|
|
<th>CPU<br/>Used</th>
|
|
|
|
<th>Memory<br/> Available</th>
|
|
|
|
</tr>
|
|
|
|
{{ range query "up{job='node'}" | sortByLabel "instance" }}
|
|
|
|
<tr>
|
|
|
|
<td><a href="node-overview.html?instance={{ .Labels.instance }}">{{ reReplaceAll "(.*?://)([^:/]+?)(:\\d+)?/.*" "$2" .Labels.instance }}</a></td>
|
|
|
|
<td{{ if eq (. | value) 1.0 }}>Yes{{ else }} class="alert-danger">No{{ end }}</td>
|
2021-09-02 03:55:40 -07:00
|
|
|
<td>{{ template "prom_query_drilldown" (args (printf "100 * (1 - avg by(instance) (sum without(mode) (irate(node_cpu_seconds_total{job='node',mode=~'idle|iowait|steal',instance='%s'}[5m]))))" .Labels.instance) "%" "printf.1f") }}</td>
|
2018-06-08 06:01:05 -07:00
|
|
|
<td>{{ template "prom_query_drilldown" (args (printf "node_memory_MemFree_bytes{job='node',instance='%s'} + node_memory_Cached_bytes{job='node',instance='%s'} + node_memory_Buffers_bytes{job='node',instance='%s'}" .Labels.instance .Labels.instance .Labels.instance) "B" "humanize1024") }}</td>
|
2015-01-22 02:39:41 -08:00
|
|
|
</tr>
|
|
|
|
{{ else }}
|
|
|
|
<tr><td colspan=4>No nodes found.</td></tr>
|
|
|
|
{{ end }}
|
2021-07-28 17:12:06 -07:00
|
|
|
</table>
|
2015-01-22 02:39:41 -08:00
|
|
|
|
|
|
|
|
2015-01-23 09:40:48 -08:00
|
|
|
{{ template "prom_content_tail" . }}
|
2014-11-20 10:41:25 -08:00
|
|
|
|
2015-01-23 09:40:48 -08:00
|
|
|
{{ template "tail" }}
|