2016-06-08 06:23:11 +00:00
|
|
|
<rd-header>
|
2016-06-14 02:32:44 +00:00
|
|
|
<rd-header-title title="Cluster overview">
|
|
|
|
<a data-toggle="tooltip" title="Refresh" ui-sref="swarm" ui-sref-opts="{reload: true}">
|
|
|
|
<i class="fa fa-refresh" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
</rd-header-title>
|
2016-06-08 06:23:11 +00:00
|
|
|
<rd-header-content>Swarm</rd-header-content>
|
|
|
|
</rd-header>
|
|
|
|
|
2016-06-02 05:34:03 +00:00
|
|
|
<div class="row">
|
2016-07-27 07:54:31 +00:00
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
2016-06-02 05:34:03 +00:00
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-header icon="fa-object-group" title="Cluster status"></rd-widget-header>
|
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>Nodes</td>
|
|
|
|
<td>{{ swarm.Nodes }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Images</td>
|
|
|
|
<td>{{ info.Images }}</td>
|
|
|
|
</tr>
|
2016-07-27 07:54:31 +00:00
|
|
|
<tr>
|
|
|
|
<td>Swarm version</td>
|
|
|
|
<td>{{ docker.Version|swarmversion }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Docker API version</td>
|
|
|
|
<td>{{ docker.ApiVersion }}</td>
|
|
|
|
</tr>
|
2016-06-02 05:34:03 +00:00
|
|
|
<tr>
|
|
|
|
<td>Strategy</td>
|
|
|
|
<td>{{ swarm.Strategy }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Total CPU</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>{{ info.NCPU }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Total memory</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>{{ info.MemTotal|humansize }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Operating system</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>{{ info.OperatingSystem }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Kernel version</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>{{ info.KernelVersion }}</td>
|
|
|
|
</tr>
|
2016-07-27 07:54:31 +00:00
|
|
|
<tr>
|
|
|
|
<td>Go version</td>
|
|
|
|
<td>{{ docker.GoVersion }}</td>
|
|
|
|
</tr>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
2016-07-27 07:54:31 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
2016-06-02 05:34:03 +00:00
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-header icon="fa-hdd-o" title="Nodes status"></rd-widget-header>
|
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2016-06-14 02:13:52 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('Name')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Name
|
|
|
|
<span ng-show="sortType == 'Name' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Name' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
2016-07-27 07:54:31 +00:00
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('cpu')">
|
|
|
|
CPU
|
|
|
|
<span ng-show="sortType == 'cpu' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'cpu' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('memory')">
|
|
|
|
Memory
|
|
|
|
<span ng-show="sortType == 'memory' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'memory' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
2016-06-02 05:34:03 +00:00
|
|
|
<th>
|
2016-06-14 02:13:52 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('IP')">
|
2016-06-02 05:34:03 +00:00
|
|
|
IP
|
|
|
|
<span ng-show="sortType == 'IP' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'IP' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
2016-06-23 22:11:25 +00:00
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('Engine')">
|
|
|
|
Engine
|
|
|
|
<span ng-show="sortType == 'Engine' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Engine' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
2016-06-02 05:34:03 +00:00
|
|
|
<th>
|
2016-06-14 02:13:52 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('Status')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Status
|
|
|
|
<span ng-show="sortType == 'Status' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Status' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="node in (state.filteredNodes = (swarm.Status | filter:state.filter | orderBy:sortType:sortReverse))">
|
|
|
|
<td>{{ node.name }}</td>
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>{{ node.cpu }}</td>
|
|
|
|
<td>{{ node.memory }}</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>{{ node.ip }}</td>
|
2016-06-23 22:11:25 +00:00
|
|
|
<td>{{ node.version }}</td>
|
2016-06-29 09:04:29 +00:00
|
|
|
<td><span class="label label-{{ node.status|nodestatusbadge }}">{{ node.status }}</span></td>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
|
|
|
</div>
|