forked from rchakode/kube-opex-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
295 lines (277 loc) · 13.8 KB
/
index.html
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!--
# File: index.html #
# Author: Rodrigue Chakode <rodrigue.chakode @ gmail dot com> #
# #
# Copyright © 2019 Rodrigue Chakode and contributors. #
# #
# This file is part of Kubernetes Opex Analytics software. #
# #
# Kubernetes Opex Analytics is licensed under the Apache License 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. #
-->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Kubernetes Opex Analytics | Hourly, Daily and Monthly Analytics of Kubernetes Cluster Usage</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link rel="shortcut icon" href="{{ url_for('static', filename='images/favicon.ico') }}">
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen">
<link rel="stylesheet" href="css/bootswatch.min.css">
<link type="text/css" rel="stylesheet" href="css/britecharts/britecharts.min.css" />
<link rel="stylesheet" href="css/frontend.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="../bower_components/html5shiv/dist/html5shiv.js"></script>
<script src="../bower_components/respond/dest/respond.min.js"></script>
<![endif]-->
<script type='text/javascript' >
var FrontendApi = {};
const UsageTypes = Object.freeze(
{
"CPU": "cpu",
"MEM": "memory",
"CONSOLIDATED": "consolidated",
});
FrontendApi.DATA_DIR='{{ koa_frontend_data_location }}';
</script>
<script data-main="js/frontend.js" src="js/require-v2.3.6.min.js" > </script>
<script>
require(['frontend']);
</script>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a href="/" class="navbar-brand"><img src="static/images/kube-opex-analytics.png" alt="Kubernetes Opex Analytics logo" height="50px"/></a>
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse" id="navbar-main">
<ul class="nav navbar-nav navbar-right">
<li><a href="#" data-toggle="modal" data-target="#myModal">About</a></li>
</ul>
</div>
</div>
</div>
<div class="container page-header">
<div class="row">
<div class="col-md-12">
<div id="error-message-container">
<div class="alert alert-danger alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
Processing error:
<ul id="error-message"></ul>
</div>
</div>
<script type="javascript">
$("#error-message-container").hide();
</script>
</div>
</div>
<div class="row">
<div class="col-md-5">
<legend>
Usage Trends (% per namespace) - 7 days
<select id="selected-usage-trend-type" onchange="FrontendApi.showSelectedUsageTrendType()">
<option value="default" disabled selected style="display:none;">Hourly Usage</option>
<option value="hourly-usage">Hourly Usage</option>
<option value="usage-efficiency">Usage/Request Efficiency</option>
</select>
</legend>
</div>
<div class="col-md-5">
<span class="control-label">Date Filter:</span>
<input type="datetime-local" id="filter-start-date" name="filter-start-date">
<input type="datetime-local" id="filter-end-date" name="filter-end-date">
</div>
<div class="col-md-2">
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle menu-export" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<a class="chart-download"> export</a>
</button>
<ul class="dropdown-menu">
<li class="disabled"><a id="trends-cpu-png" class="dropdown-item" href="#">Export CPU Chart (PNG)</a></li>
<li class="disabled"><a id="trends-cpu-json" class="dropdown-item" href="#">Export CPU Data (JSON)</a></li>
<li class="disabled"><a id="trends-cpu-csv" class="dropdown-item" href="#">Export CPU Data (CSV)</a></li>
<li class="disabled"><a id="trends-memory-png" class="dropdown-item" href="#">Export Memory Chart (PNG)</a></li>
<li class="disabled"><a id="trends-memory-json" class="dropdown-item" href="#">Export Memory Data (JSON)</a></li>
<li class="disabled"><a id="trends-memory-csv" class="dropdown-item" href="#">Export Memory Data (CSV)</a></li>
</ul>
</div>
</div>
</div>
<div class="row chart-container">
<div id="chart-block-trends-rf">
<div class="col-md-6">
<div class="js-chart-trends-cpu-rf"></div>
</div>
<div class="col-md-6">
<div class="js-chart-trends-memory-rf"></div>
</div>
</div>
<div id="chart-block-trends-hourly-usage">
<div class="col-md-6">
<div class="js-chart-trends-cpu-usage"></div>
</div>
<div class="col-md-6">
<div class="js-chart-trends-memory-usage"></div>
</div>
</div>
</div>
<div class="row chart-container">
<div class="col-md-9">
<legend>Usage Accounting <span class="accounting-cost-model"></span>
<select id="selected-cumulative-usage-type" onchange="FrontendApi.showCumulativeUsageByType()">
<option value="default" disabled selected style="display:none;">Daily Usage</option>
<option value="daily-usage">Daily Usage</option>
<option value="daily-requests">Daily Requests</option>
<option value="monthly-usage">Monthly Usage</option>
<option value="monthly-requests">Monthly Requests</option>
</select>
</legend>
</div>
<div class="col-md-1">
</div>
<div class="col-md-2">
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle menu-export" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<a class="chart-download"> export</a>
</button>
<ul class="dropdown-menu">
<li class="disabled"><a id="consolidated-cpu-usage-png" class="dropdown-item" href="#">Export CPU Chart (PNG)</a></li>
<li class="disabled"><a id="consolidated-cpu-usage-json" class="dropdown-item" href="#">Export CPU Data (JSON)</a></li>
<li class="disabled"><a id="consolidated-cpu-usage-csv" class="dropdown-item" href="#">Export CPU Data (CSV)</a></li>
<li class="disabled"><a id="consolidated-memory-usage-png" class="dropdown-item" href="#">Export Memory Chart (PNG)</a></li>
<li class="disabled"><a id="consolidated-memory-usage-json" class="dropdown-item" href="#">Export Memory Data (JSON)</a></li>
<li class="disabled"><a id="consolidated-memory-usage-csv" class="dropdown-item" href="#">Export Memory Data (CSV)</a></li>
</ul>
</div>
</div>
<div id="chart-block-daily">
<div class="col-md-6">
<div class="js-chart-daily-cpu-usage"></div>
</div>
<div class="col-md-6">
<div class="js-chart-daily-memory-usage"></div>
</div>
</div>
<div id="chart-block-monthly">
<div class="col-md-6">
<div class="js-chart-monthly-cpu-usage"></div>
</div>
<div class="col-md-6">
<div class="js-chart-monthly-memory-usage"></div>
</div>
</div>
</div>
<div class="row chart-container">
<div class="col-md-9">
<legend>Nodes - Occupation by pods
<span>
<select id="node-usage-type" onchange="FrontendApi.updateNodeUsage()">
<option value="cpu" disabled selected style="display:none;">CPU</option>
<option value="cpu">CPU</option>
<option value="memory">Memory</option>
</select>
</span>
</legend>
<div id="js-nodes-load-container" > </div>
</div>
<div class="col-md-3">
<legend>List of nodes</legend>
<div id="host-list-container"></div>
</div>
</div>
</div>
<!-- Host popup container -->
<div id="popup-container"></div>
<!-- About Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">About Kubernetes Opex Analytics</h4>
</div>
<div class="modal-body">
<p>
Kubernetes Opex Analytics, Version {{ koa_version }}.
</p>
<p>
Copyright © 2019 Rodrigue Chakode and contributors.
</p>
<p>
Kubernetes Opex Analytics is designed and made available free of charge thanks to the support of REALOPS'LABS company
(<a href="https://realopslabs.com" target="_blank">https://realopslabs.com</a>).
</p>
<p>
The product is licensed under the Apache License,
Version 2.0 (the "License"); you may not use this product except
in compliance with the License. You may obtain a copy of the
License at: <a href="http://www.apache.org/licenses/LICENSE-2.0">
http://www.apache.org/licenses/LICENSE-2.0
</a>
</p>
<p>
Unless required by applicable law or agreed to in writing, the product
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.
</p>
<p>
This product uses third-party libraries released under their own license terms.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<footer>
<div class="container pos-rel z1">
<div class="flex-row gt20 mb20">
<div class="col-md-4">
</div>
<div class="col-md-3">
<ul class="nav flex-column">
<li class="nav-item">
<legend>kube-opex-analytics v{{ koa_version }}</legend>
<a class="nav-link active" href="https://github.com/rchakode/kube-opex-analytics/releases">Release notes</a>
<a class="nav-link" href="https://github.com/rchakode/kube-opex-analytics/blob/master/LICENSE">License Terms</a>
<a class="nav-link" href="https://github.com/rchakode/kube-opex-analytics">Issues & Contributions (Github)</a>
</li>
</ul>
</div>
<div class="col-md-3">
<ul class="nav flex-column">
<li class="nav-item">
<legend>Related Products</legend>
Centralized Multi-Kubernetes Usage Analytics
<a class="nav-link disabled" href="https://krossboard.app/">Krossboard Project</a>
Operations Monitoring for Kubernetes Applications
<a class="nav-link disabled" href="http://realopinsight.com/">RealOpInsight Project</a>
</li>
</ul>
</div>
<div class="col-md-2">
</div>
</div>
</div>
</footer>
</body>
</html>