scout_realtime 1.0.2 → 1.0.3.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +4 -0
- data/lib/scout_realtime/version.rb +1 -1
- data/lib/scout_realtime/web/javascripts/application.js +6 -6
- data/lib/scout_realtime/web/views/header.erb +2 -2
- data/lib/scout_realtime/web/views/index.erb +2 -2
- data/lib/scout_realtime/web/views/layout.erb +3 -3
- data/lib/scout_realtime/web/views/sidebar.erb +2 -2
- data/lib/scout_realtime/web/views/sidebar_bottom.erb +2 -2
- metadata +5 -6
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
var refreshInterval = 1000;
|
2
2
|
var processIteration = 0;
|
3
3
|
var firstShift = true;
|
4
|
-
var overviewChartMargin = 30; // pulled from lineChart overview margin
|
4
|
+
var overviewChartMargin = 30; // pulled from lineChart overview margin
|
5
5
|
function d(s){console.debug(s)}
|
6
6
|
|
7
7
|
window.refresher = null;
|
@@ -151,7 +151,7 @@ $(document).ready(init);
|
|
151
151
|
function init() {
|
152
152
|
Processes.init({element:document.getElementById('processes')});
|
153
153
|
setOverviewChartWidths();
|
154
|
-
|
154
|
+
|
155
155
|
$(window).on("debouncedresize", function( event ) {
|
156
156
|
setOverviewChartWidths();
|
157
157
|
});
|
@@ -206,7 +206,7 @@ function init() {
|
|
206
206
|
// setTimeout(updateGraphData, 1000) // uncomment to get ONE update in a second (for development)
|
207
207
|
// normally, lines 1 and 2 above will be uncommented
|
208
208
|
|
209
|
-
// in chrome, the initial chart size is larger than what the parent container is. calling it here resets things.
|
209
|
+
// in chrome, the initial chart size is larger than what the parent container is. calling it here resets things.
|
210
210
|
// still need to call it before drawing charts as FF won't draw it full width.
|
211
211
|
setOverviewChartWidths()
|
212
212
|
|
@@ -272,7 +272,7 @@ function formatTime(timestamp) {
|
|
272
272
|
|
273
273
|
|
274
274
|
function refresh() {
|
275
|
-
$.getJSON("
|
275
|
+
$.getJSON("stats.json", function (d) {
|
276
276
|
metrics = d;
|
277
277
|
updateGraphData();
|
278
278
|
}).fail(function() {
|
@@ -284,7 +284,7 @@ function refresh() {
|
|
284
284
|
/*
|
285
285
|
Called on initial load. Just sets the svg element to the size of its parent. This is needed on firefox.
|
286
286
|
|
287
|
-
Why don't we just use % widths for containers?
|
287
|
+
Why don't we just use % widths for containers?
|
288
288
|
|
289
289
|
The chart SVGs have a 30px left margin to handle the y-axis. We need to shift the charts over 30px to the left
|
290
290
|
to handle this. We also need to add 30px to the width of the chart so it ends up using the entire container width
|
@@ -299,7 +299,7 @@ function setOverviewChartWidths(){
|
|
299
299
|
$('.overview_chart_container').each(function(i,e) {
|
300
300
|
$(e).width(containerWidth).css('margin-right',padding)
|
301
301
|
});
|
302
|
-
|
302
|
+
|
303
303
|
$('.overview_chart').each(function(i,e){
|
304
304
|
$svg=$(e);
|
305
305
|
$svg.width(containerWidth+overviewChartMargin);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div> <!-- wrapper div needed for ff positioning -->
|
2
|
-
<img src="
|
2
|
+
<img src="images/logo.png" alt="Scout Realtime"/>
|
3
3
|
<div id="toggle">
|
4
4
|
<span id='report-time'></span>
|
5
|
-
<span id='off' class="button"><img src="
|
5
|
+
<span id='off' class="button"><img src="images/pause.png" width=12 height=14 /></span><span id='on' class="button"><img src="images/play.png" width=14 height=14 ></span>
|
6
6
|
</div>
|
7
7
|
<div>
|
8
8
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<td id="overview_charts">
|
13
13
|
<%= erb :overview_charts%>
|
14
14
|
</td>
|
15
|
-
</tr>
|
15
|
+
</tr>
|
16
16
|
<tr>
|
17
17
|
<td id="processes_container">
|
18
18
|
<h2><span>Top</span> Processes</h2>
|
@@ -24,4 +24,4 @@
|
|
24
24
|
</tr>
|
25
25
|
</tbody>
|
26
26
|
</table>
|
27
|
-
<script src="
|
27
|
+
<script src="javascripts/application.js"></script>
|
@@ -12,9 +12,9 @@
|
|
12
12
|
<![endif]-->
|
13
13
|
<link rel="stylesheet" href="stylesheets/styles.css?v=1.0">
|
14
14
|
<script type="text/javascript" src="javascripts/jquery.js"></script>
|
15
|
-
<script src="
|
16
|
-
<script src="
|
17
|
-
<script src="
|
15
|
+
<script src="javascripts/d3.v3.min.js"></script>
|
16
|
+
<script src="javascripts/jquery.debouncedresize.js"></script>
|
17
|
+
<script src="javascripts/d3.linechart.js"></script>
|
18
18
|
<script type="text/javascript" src="javascripts/handlebars-v1.1.0.js"></script>
|
19
19
|
<script>var metrics_array=[]<%#=DATA_FOR_TESTING.to_json%>;</script>
|
20
20
|
<script>var metrics=<%=@latest_run.to_json%>;</script>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<div class="info" id="hostname_info">
|
2
2
|
<div class="value" id="hostname"><%= ServerMetrics::SystemInfo.hostname %></div>
|
3
3
|
<div class="value" id="os_info">
|
4
|
-
<img src="
|
4
|
+
<img src="images/linux.png" alt="Linux" height=40 valign=middle>
|
5
5
|
<%= a=ServerMetrics::SystemInfo.architecture =~ /64/ ? '64-bit' : a %>
|
6
6
|
<%= ServerMetrics::SystemInfo.os_version %>
|
7
|
-
</div>
|
7
|
+
</div>
|
8
8
|
</div>
|
9
9
|
<div class="info">
|
10
10
|
<div class="value"><span><%= count=ServerMetrics::SystemInfo.num_processors %></span> <%= count > 1 ? 'processors' : 'processor'%></div>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<div>An open-source tool created by <a href="https://scoutapp.com">Scout</a>.</div>
|
2
|
-
<a href="http://github.com/scoutapp/scout_realtime" class="icon" target="_blank"><img src="
|
3
|
-
<a href="https://scoutapp.com" class="icon" target="_blank"><img src="
|
2
|
+
<a href="http://github.com/scoutapp/scout_realtime" class="icon" target="_blank"><img src="images/github.png" height=28/></a>
|
3
|
+
<a href="https://scoutapp.com" class="icon" target="_blank"><img src="images/scout.png" height=26/></a>
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout_realtime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.3.pre
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Andre Lewis
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-03-
|
14
|
+
date: 2014-03-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -711,9 +711,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
711
711
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
712
712
|
none: false
|
713
713
|
requirements:
|
714
|
-
- - ! '
|
714
|
+
- - ! '>'
|
715
715
|
- !ruby/object:Gem::Version
|
716
|
-
version:
|
716
|
+
version: 1.3.1
|
717
717
|
requirements: []
|
718
718
|
rubyforge_project:
|
719
719
|
rubygems_version: 1.8.23
|
@@ -730,4 +730,3 @@ test_files:
|
|
730
730
|
- test/models/processes_test.rb
|
731
731
|
- test/runner_test.rb
|
732
732
|
- test/test_helper.rb
|
733
|
-
has_rdoc:
|