Repository navigation
Expand file tree
/
Copy pathosdPerf.html
More file actions
97 lines (88 loc) · 4.34 KB
/
Copy pathosdPerf.html
File metadata and controls
97 lines (88 loc) · 4.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!doctype html>
<html ng-app="OsdPerf">
<head>
<meta charset=utf-8 />
<script src="scripts/angular/angular.min.js"></script>
<script src="scripts/angular/angular-route.min.js"></script>
<script src="scripts/angular/angular-sanitize.min.js"></script>
<script src="scripts/angular-misc/ng-table.min.js"></script>
<script src="scripts/angular-misc/angular-commons.js"></script>
<script src="scripts/angular-misc/ui-bootstrap-tpls-0.10.0.min.js"></script>
<script src="scripts/angular-misc/dialogs.v2.min.js"></script>
<script src="scripts/osdPerfApp.js"></script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/bootstrap.min.js"></script>
<script src="scripts/angular-misc/D3Directives.js"></script>
<script src="scripts/d3/d3.v3.min.js"></script>
<script src="scripts/d3/nv.d3.min.js" charset="utf-8"></script>
<script src="scripts/d3/common.js"></script>
<script src="scripts/d3/colorbrewer.js"></script>
<link rel="stylesheet" href="css/testAdmin.css" />
<link rel="stylesheet" href="css/tooltip.css" />
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="scripts/angular-misc/ng-table.min.css">
<link rel="stylesheet" href="css/nv.d3.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<title>Osd perf</title>
</head>
<body ng-controller="OsdPerfCtrl" onresize="resizeBlocks(['#list','#control'])">
<header id="header" ng-include src="'partials/header.html'" ng-init="pageTitle='OSDs performance'"></header>
<div>
<!--div id="status" >{{status}}</div-->
<div id="datePanel"><br>Date : {{date | date:'HH:mm:ss'}}</div>
<div id="list">
<table>
<tr>
<th><input type="text" ng-model="search.id" class="search-query" placeholder="Search osd name"></th>
<th> </th>
<th></th>
</tr>
</table>
<br>
<table ng-table="tableParams" class="table table-condensed clickable">
<tr ng-repeat="osd in orderedData | filter:search:strict" ng-click="showOsd(osd.id)">
<td data-title="'Id'" sortable="'id'">osd.{{osd.id}}</td>
<td data-title="'Apply latency'" sortable="'perf_stats.apply_latency_ms'" style="text-align: right">{{ osd.perf_stats.apply_latency_ms }}</td>
<td data-title="'Commit latency'" sortable="'perf_stats.commit_latency_ms'" style="text-align: right">{{ osd.perf_stats.commit_latency_ms }}</td>
</tr>
</table>
</div>
</div>
<div id="control" ng-show="osd" style="float:right;width:250px">
<div class="osd {{osdClass(osd)}}" style="float:right">
{{osd.node._id}}
</div>
<h3>{{osd.node.name}}</h3>
<br>
<strong>{{osdState(osd)}}</strong>
<br><br>
<div id="osdStatGraph"><svg style="height:180px;width:100%"></svg></div>
<div>
last control : {{osd.lastControl|duration}}<br>
reweight : {{osd.reweight }}<br>
{{osd.partition._id}}<br>
{{osd.public_addr}}<br>
</div>
<ad-gauge value="osd.partition.stat.used/osd.partition.stat.total" colormode="desc" width="241" style="margin:5px auto:width:241px"></ad-gauge>
<div class="gaugeLegend">
{{osd.partition.stat.used| bytes}} used <br>on {{osd.partition.stat.total| bytes}}
</div>
<div ng-show="hasRole('admin')">
<hr>
<div align="center">
<a class="btn btn-success" ng-hide="osd.stat.in == true" ng-click="osdIn(osd.id)" ><i class="icon-white icon-plus"></i> get in</a>
<a class="btn btn-danger" ng-hide="osd.stat.in != true" ng-click="osdOut(osd.id)"><i class="icon-white icon-minus"></i> get out</a>
<a class="btn btn-warning" ng-hide="osd.stat.up == false" ng-click="osdDown(osd.id)"><i class="icon-white icon-arrow-down"></i> down</a>
<a href="monitorOSD.html#/osd/osd-{{osd.node._id}}" class="btn btn-info" ng-show="useInfluxDB"><i class="fa fa-line-chart"></i> Monitor</a>
</div>
<div>
<hr>
<input ng-model="reweight" id="reweight" type="text" style="width:150px;vertical-align: top">
<a class="btn btn-warning btn-small" ng-click="osdReweight(osd.id)"><i class="fa fa-balance-scale"></i> Reweight</a>
</div>
</div>
</div>
<script>resizeBlocks(['#list','#control']);</script>
</body>
</body>
</html>