forked from trulia/thoth-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
276 lines (249 loc) · 12.4 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
<!DOCTYPE html>
<head>
<title>Thoth: Real-time Solr Monitor Engine</title>
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,400italic,300italic' rel='stylesheet' type='text/css'>
<link href="css/entypo.css" rel="stylesheet" type="text/css">
<link href="css/nvd3/nv.d3.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-datetimepicker/jquery.datetimepicker.css">
<link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
<nav>
<a href="/"><img src="img/thoth-logo-combo.png"></a>
<ul id="menu">
<li><a href="?p=servers"><i class="entypo popup"></i>Servers</a>
<li><a href="?p=pools"><i class="entypo database"></i>Pools</a>
<li><a href="?p=exceptions"><i class="entypo warning"></i>Exceptions</a>
<li><a href="?p=slowqueries"><i class="entypo air"></i>Slow Queries</a>
<li><a href="?p=realtime"><i class="entypo back-in-time"></i>Realtime</a>
</ul>
<a href="https://github.com/dbraga/thoth-dashboard"><img src="img/thoth-fork.png" class="thoth-fork"></a>
<a href="https://www.trulia.com"><img src="img/powered-trulia.png" class="powered-trulia"></a>
</nav>
<div class="content">
<header>
<form id="params" >
<div class="row">
<label for="from_date" class="optional" data-role="from_date_label"> From </label>
<input type="text" class="optional formInput" id="from_date" name="from_date" data-role="from_date_input" size="20">
<label for="to_date" class="optional" data-role="to_date_label"> To </label>
<input type="text" class="optional formInput" id="to_date" name="to_date" data-role="to_date_input" size="20">
<label for="server-values" class="optional" data-role="server_values_label"> Server </label>
<select id="server-values" class="optional formInput" data-role="server_values_select"></select>
<label for="pool-values" class="optional" data-role="pool_values_label"> Pool </label>
<select id="pool-values" class="optional formInput" data-role="pool_values_select"></select>
<label for="port-values" class="optional" data-role="port_values_label"> Port </label>
<select id="port-values" class="optional formInput" data-role="port_values_select"></select>
<label for="core-values" class="optional" data-role="core_values_label"> Core </label>
<select id="core-values" class="optional formInput" data-role="core_values_select"></select>
<button class="btn light-blue optional formInput vab" data-role="submit_settings" ><i class="entypo ccw"></i></button>
<button class="btn light-blue optional formInput vab" data-role="share_url"><i class="entypo share"></i></button>
</div>
</form>
</header>
<article id="main" class="container">
<section id="servers" class="row">
<div id="query_count" class="graph col-md-5">
<div class="title">Avg number of queries</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<div id="query_integral" class="graph col-md-5">
<div class="title">∫ Query count</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<br>
<div id="exception_count" class="graph col-md-5">
<div class="title">Exception count</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<div id="exception_integral" class="graph col-md-5">
<div class="title">∫ Exception count</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<br>
<div id="zeroHits_count" class="graph col-md-5">
<div class="title">Zero Hits count</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<div id="zeroHits_integral" class="graph col-md-5">
<div class="title">∫ Zero Hits count</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<br>
<div id="query_time" class="graph col-md-5">
<div class="title">Avg query time — sec</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<div id="distribution_qtime" class="graph col-md-5">
<div class="title">Distribution of query times (sec)</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label></label><h3 class="value"></h3> <label></label><h3 class="timestamp"></h3>
<svg id="query_distribution"></svg>
</div>
<br>
<div id="query_on_deck" class="graph col-md-5">
<div class="title">Avg number of queries "on deck"</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
</section>
<section id="pools" class="row">
<div id="pool_query_count" class="graph col-md-5">
<div class="title">Avg number of queries</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<div id="pool_query_integral" class="graph col-md-5">
<div class="title">∫ Query count</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<br>
<div id="pool_exception_count" class="graph col-md-5">
<div class="title">Exception count</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<div id="pool_exception_integral" class="graph col-md-5">
<div class="title">∫ Exception count</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<br>
<div id="pool_zeroHits_count" class="graph col-md-5">
<div class="title">Zero Hits count</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<div id="pool_zeroHits_integral" class="graph col-md-5">
<div class="title">∫ Zero Hits count</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<br>
<div id="pool_query_time" class="graph col-md-5">
<div class="title">Avg query time — sec</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<div id="pool_query_on_deck" class="graph col-md-5">
<div class="title">Avg number of queries "on deck"</div>
<a><i class="entypo eye" onClick="showLightBox(this);"></i></a>
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<br>
</section>
<section id="realtime">
<div class="row">
<div class="rt_avg_query_time graph col-md-5">
<div class="title">Avg query time — sec</div>
<!-- <a><i class="entypo eye" onClick="showLightBox(this);"></i></a> -->
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<div class="rt_avg_query_number graph col-md-5">
<div class="title">Avg number of queries</div>
<!-- <a><i class="entypo eye" onClick="showLightBox(this);"></i></a> -->
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
</div>
<div class="row">
<div class="rt_exceptions_count graph col-md-5">
<div class="title">Exceptions Count</div>
<!-- <a><i class="entypo eye" onClick="showLightBox(this);"></i></a> -->
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
<div class="rt_zero_hits_count graph col-md-5">
<div class="title">Zero Hits Count</div>
<!-- <a><i class="entypo eye" onClick="showLightBox(this);"></i></a> -->
<br><label>Value:</label><h3 class="value"></h3> <label>Time:</label><h3 class="timestamp"></h3>
<svg></svg>
</div>
</div>
</section>
<section id="slowqueries" class="row">
<div data-role="slowqueries_page_content"></div>
<div data-role="slowqueries_pagination_wrapper" class="pagination center">
<ul data-role="slowqueries_pagination_demo" class="pagination-sm pagination-demo"></ul>
</div>
</section>
<section id="exceptions" class="row">
<div data-role="exceptions_page_content"></div>
<div data-role="exceptions_pagination_wrapper" class="pagination center">
<ul data-role="exceptions_pagination_demo" class="pagination-sm pagination-demo"></ul>
</div>
</section>
</article>
</div>
<div id="lightbox">
<div class="box">
<div id="lightboxChart" class="lightboxGraph">
<button class="circle"><i class="entypo cross close-button" ></i></button>
<h2>Avg query time — sec</h2>
<svg></svg>
</div>
</div>
</div>
<div id="listLightbox">
<div class="box">
<div id="lightboxChart" class="lightboxGraph">
<button class="circle"><i class="entypo cross close-button" ></i></button>
<label></label>
<p class="timestamp"></p>
<br>
<label class="qtime" style="display:none;" >QTime: </label>
<p class="qtime" style="display:none;"></p>
<br>
<label class="exception-stackTrace" style="display:none;">StackTrace</label>
<textarea class="exception-stackTrace" style="display:none;"></textarea>
<label class="exception-query" style="display:none;" >Query</label>
<textarea class="exception-query" style="display:none;"></textarea>
<label class="query-text" style="display:none;">Query</label>
<textarea class="query-text" style="display:none;"></textarea>
</div>
</div>
</div>
<script src="js/vendor/d3.v3.js"></script>
<script src="js/vendor/nvd3/nv.d3.js"></script>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="js/vendor/bootstrap-datetimepicker/jquery.datetimepicker.js"></script>
<script src="js/charts_data.js"></script>
<script src="js/api.js"></script>
<script src="js/graph_builder.js"></script>
<script src="js/realtime.js"></script>
<script src="js/form_options.js"></script>
<script src="js/index.js"></script>
<script src="js/thoth.js"></script>
<script src="js/vendor/jquery.twbsPagination.min.js"></script>
<script src="js/lightbox.js"></script>
</body>
</html>