Remove old stat tracking code from the client page
In favor of the new primary-metric components
This commit is contained in:
parent
10b9017d84
commit
01429a9b78
|
@ -37,17 +37,6 @@ export default Controller.extend(Sortable, Searchable, {
|
|||
return this.get('model.drivers').sortBy('name');
|
||||
}),
|
||||
|
||||
stats: stats('model', function statsFetch() {
|
||||
return url => this.get('token').authorizedRequest(url);
|
||||
}),
|
||||
|
||||
pollStats: task(function*() {
|
||||
do {
|
||||
yield this.get('stats').poll();
|
||||
yield timeout(1000);
|
||||
} while (!Ember.testing);
|
||||
}),
|
||||
|
||||
actions: {
|
||||
gotoAllocation(allocation) {
|
||||
this.transitionToRoute('allocations.allocation', allocation);
|
||||
|
|
|
@ -38,15 +38,4 @@ export default Route.extend(WithWatchers, {
|
|||
watchAllocations: watchRelationship('allocations'),
|
||||
|
||||
watchers: collect('watch', 'watchAllocations'),
|
||||
|
||||
setupController(controller, model) {
|
||||
this._super(...arguments);
|
||||
if (model) {
|
||||
controller.get('pollStats').perform();
|
||||
}
|
||||
},
|
||||
|
||||
resetController(controller) {
|
||||
controller.get('pollStats').cancelAll();
|
||||
},
|
||||
});
|
||||
|
|
|
@ -77,60 +77,6 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="boxed-section">
|
||||
<div class="boxed-section-head is-hollow">
|
||||
Resource Utilization
|
||||
</div>
|
||||
<div class="boxed-section-body">
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
CPU
|
||||
<div style="height: 200px">
|
||||
{{stats-time-series data=stats.cpu chartClass="is-info"}}
|
||||
</div>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="inline-chart">
|
||||
<progress
|
||||
class="progress is-info is-small"
|
||||
value="{{stats.cpu.lastObject.percent}}"
|
||||
max="1">
|
||||
{{stats.cpu.lastObject.percent}}
|
||||
</progress>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column is-minimum">
|
||||
{{format-percentage stats.cpu.lastObject.percent total=1}}
|
||||
</div>
|
||||
</div>
|
||||
{{stats.cpu.lastObject.used}} Mhz / {{stats.reservedCPU}} Mhz reserved
|
||||
</div>
|
||||
<div class="column">
|
||||
Memory
|
||||
<div style="height: 200px">
|
||||
{{stats-time-series data=stats.memory chartClass="is-danger"}}
|
||||
</div>
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
<div class="inline-chart">
|
||||
<progress
|
||||
class="progress is-danger is-small"
|
||||
value="{{stats.memory.lastObject.percent}}"
|
||||
max="1">
|
||||
{{stats.memory.lastObject.percent}}
|
||||
</progress>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column is-minimum">
|
||||
{{format-percentage stats.memory.lastObject.percent total=1}}
|
||||
</div>
|
||||
</div>
|
||||
{{format-bytes stats.memory.lastObject.used}} MiB / {{stats.reservedMemory}} MiB reserved
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="boxed-section">
|
||||
<div class="boxed-section-head is-hollow">
|
||||
Resource Utilization
|
||||
|
|
Loading…
Reference in New Issue