66 lines
2.3 KiB
Handlebars
66 lines
2.3 KiB
Handlebars
|
{{!--
|
||
|
Licensed to the Apache Software Foundation (ASF) under one
|
||
|
or more contributor license agreements. See the NOTICE file
|
||
|
distributed with this work for additional information
|
||
|
regarding copyright ownership. The ASF licenses this file
|
||
|
to you under the Apache License, Version 2.0 (the
|
||
|
"License"); you may not use this file except in compliance
|
||
|
with the License. You may obtain a copy of the License at
|
||
|
|
||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
Unless required by applicable law or agreed to in writing, software
|
||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
See the License for the specific language governing permissions and
|
||
|
limitations under the License.
|
||
|
--}}
|
||
|
|
||
|
<table id="nodes-table" class="display table table-striped table-bordered" cellspacing="0" width="100%">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Node Labels</th>
|
||
|
<th>Rack</th>
|
||
|
<th>Node State</th>
|
||
|
<th>Node Address</th>
|
||
|
<th>Node HTTP Address</th>
|
||
|
<th>Last Health Update</th>
|
||
|
<th>Health-Report</th>
|
||
|
<th>Containers</th>
|
||
|
<th>Mem Used</th>
|
||
|
<th>Mem Avail</th>
|
||
|
<th>VCores Used</th>
|
||
|
<th>VCores Avail</th>
|
||
|
<th>Version</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{{#if model}}
|
||
|
{{#each model as |node|}}
|
||
|
{{#if node.isDummyNode}}
|
||
|
<tr><td colspan="13" align="center">No nodes found on this cluster</td></tr>
|
||
|
{{else}}
|
||
|
<tr>
|
||
|
<td>{{node.nodeLabelsAsString}}</td>
|
||
|
<td>{{node.rack}}</td>
|
||
|
<td><span class={{node.nodeStateStyle}}>{{node.state}}</span></td>
|
||
|
<td>{{node.id}}</td>
|
||
|
{{node-link nodeId=node.id nodeHTTPAddress=node.nodeHTTPAddress nodeState=node.state}}
|
||
|
<td>{{node.lastHealthUpdate}}</td>
|
||
|
<td>{{node.healthReport}}</td>
|
||
|
<td>{{node.numContainers}}</td>
|
||
|
<td>{{divide num=node.usedMemoryMB den=1024}} GB</td>
|
||
|
<td>{{divide num=node.availMemoryMB den=1024}} GB</td>
|
||
|
<td>{{node.usedVirtualCores}}</td>
|
||
|
<td>{{node.availableVirtualCores}}</td>
|
||
|
<td>{{node.version}}</td>
|
||
|
</tr>
|
||
|
{{/if}}
|
||
|
{{/each}}
|
||
|
{{/if}}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
{{simple-table table-id="nodes-table" bFilter=true}}
|
||
|
{{outlet}}
|