admin-system-view.html
156 lines
| 6.6 KiB
| text/html
|
HtmlLexer
r85 | <ng-include src="'templates/loader.html'" ng-if="$ctrl.loading.system"></ng-include> | |||
r0 | ||||
r85 | <div ng-if="$ctrl.loading.system == false"> | |||
r0 | <div class="row"> | |||
<div class="col-sm-12"> | ||||
<div class="panel panel-default"> | ||||
<div class="panel-heading"> | ||||
<h3 class="panel-title"> | ||||
System Info | ||||
</h3> | ||||
</div> | ||||
<div class="panel-body"> | ||||
<p><strong>System Load:</strong> | ||||
r85 | 1min: {{$ctrl.systemLoad[0]}}, 5min: {{$ctrl.systemLoad[1]}}, 15min: {{$ctrl.systemLoad[2]}} | |||
r0 | </p> | |||
<p><strong>Awaiting tasks:</strong> | ||||
<ul> | ||||
r85 | <li>reports: {{$ctrl.queueStats.waiting_reports}}</li> | |||
<li>logs: {{$ctrl.queueStats.waiting_logs}}</li> | ||||
<li>metrics: {{$ctrl.queueStats.waiting_metrics}}</li> | ||||
<li>other: {{$ctrl.queueStats.waiting_other}}</li> | ||||
r0 | </ul> | |||
</p> | ||||
<p><strong>Queue stats from last minute:</strong> | ||||
<ul> | ||||
r85 | <li>Processed reports: {{$ctrl.queueStats.processed_reports}}</li> | |||
<li>Processed logs: {{$ctrl.queueStats.processed_logs}}</li> | ||||
<li>Processed metrics: {{$ctrl.queueStats.processed_metrics}}</li> | ||||
r0 | </ul> | |||
</p> | ||||
<p><strong>Disks:</strong> | ||||
<ul> | ||||
r85 | <li ng-repeat="disk in $ctrl.disks"> | |||
r0 | <strong>{{disk.device}}</strong> {{disk.free}}/{{disk.total}}, {{disk.percentage}}% used | |||
</li> | ||||
</ul> | ||||
</p> | ||||
<p><strong>Process stats:</strong> | ||||
<ul> | ||||
r85 | <li>FD soft limits: {{$ctrl.selfInfo.fds.soft}}</li> | |||
<li>FD hard limits: {{$ctrl.selfInfo.fds.hard}}</li> | ||||
<li>Memlock soft limits: {{$ctrl.selfInfo.memlock.soft}}</li> | ||||
<li>Memlock hard limits: {{$ctrl.selfInfo.memlock.hard}}</li> | ||||
r0 | </ul> | |||
</p> | ||||
</div> | ||||
</div> | ||||
</div> | ||||
</div> | ||||
<div class="row"> | ||||
<div class="col-sm-12"> | ||||
<div class="panel panel-default"> | ||||
<div class="panel-body"> | ||||
<uib-tabset> | ||||
<uib-tab> | ||||
<uib-tab-heading> | ||||
Postgresql Tables | ||||
</uib-tab-heading> | ||||
<table class="table table-striped"> | ||||
<thead> | ||||
<tr> | ||||
<th class="c1 tablename">Table name</th> | ||||
<th class="c2 size_human">Size</th> | ||||
</tr> | ||||
</thead> | ||||
<tbody> | ||||
r85 | <tr class="r{{$index}}" ng-repeat="row in $ctrl.DBtables"> | |||
r0 | <td class="c1">{{row.table_name}}</td> | |||
<td class="c2">{{row.size_human}}</td> | ||||
</tr> | ||||
</tbody> | ||||
</table> | ||||
</uib-tab> | ||||
<uib-tab> | ||||
<uib-tab-heading> | ||||
Elasticsearch Indices | ||||
</uib-tab-heading> | ||||
<table class="table table-striped"> | ||||
<thead> | ||||
<tr> | ||||
<th class="c1 tablename">Index name</th> | ||||
<th class="c2 size_human">Size</th> | ||||
</tr> | ||||
</thead> | ||||
<tbody> | ||||
r85 | <tr class="r{{$index}}" ng-repeat="row in $ctrl.ESIndices"> | |||
r0 | <td class="c1">{{row.name}}</td> | |||
<td class="c2">{{row.size_human}}</td> | ||||
</tr> | ||||
</tbody> | ||||
</table> | ||||
</uib-tab> | ||||
<uib-tab> | ||||
<uib-tab-heading> | ||||
Processes | ||||
</uib-tab-heading> | ||||
<table class="table table-striped"> | ||||
<thead> | ||||
<tr> | ||||
<th class="c1 tablename">Owner</th> | ||||
<th class="c2 tablename">PID</th> | ||||
<th class="c3 tablename">CPU</th> | ||||
<th class="c4 tablename">MEM</th> | ||||
<th class="c4 tablename">Name</th> | ||||
</tr> | ||||
</thead> | ||||
<tbody> | ||||
r85 | <tr class="r{{$index}}" ng-repeat-start="row in $ctrl.processInfo"> | |||
r0 | <td class="c1">{{row.owner}}</td> | |||
<td class="c2">{{row.pid}}</td> | ||||
<td class="c3">{{row.cpu}}</td> | ||||
<td class="c4">{{row.mem_usage}} ({{row.mem_percentage}}%)</td> | ||||
<td class="c5"><strong>{{row.name}}</strong></td> | ||||
</tr> | ||||
<tr ng-repeat-end> | ||||
<td colspan="5" class="word-wrap">{{row.command}}</td> | ||||
</tr> | ||||
</tbody> | ||||
</table> | ||||
</uib-tab> | ||||
<uib-tab> | ||||
<uib-tab-heading> | ||||
Python packages | ||||
</uib-tab-heading> | ||||
<table class="table"> | ||||
r85 | <tr ng-repeat="package in $ctrl.packages"> | |||
r0 | <td>{{package.name}}</td> | |||
<td>{{package.version}}</td> | ||||
</tr> | ||||
</table> | ||||
</p> | ||||
</uib-tab> | ||||
</uib-tabset> | ||||
</div> | ||||
</div> | ||||
</div> | ||||
</div> | ||||
</div> | ||||