scout_realtime 0.5.4 → 0.5.5.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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.5.5
2
+
3
+ * Using the `server_metrics` Collector `TTL` option for better performance on system calls.
4
+ * Set runner interval to 3 seconds
5
+ * Using CPU `:skip_load => true` option as load average info is not displayed. Collecting this involves a system call.
6
+
1
7
  ## 0.5.4
2
8
 
3
9
  * Misc UI updates
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Stream realtime server and process metrics to your browser!
4
4
 
5
- <img src="https://www.evernote.com/shard/s1/sh/0b0c8bdb-9430-4758-8ce5-98ce385c2c76/339cf36badbdaf6d9f99b964a03358de/deep/0/Realtime.png">
5
+ <img src="https://dl.dropboxusercontent.com/u/468982/blog/realtime_screen.png">
6
6
 
7
7
 
8
8
 
@@ -1,7 +1,8 @@
1
1
  module Scout
2
2
  module Realtime
3
3
  class Main
4
- INTERVAL=1
4
+ INTERVAL=3 # time in seconds between runs of the thread to fetch stats
5
+ TTL=60 # time in seconds for collectors to cache slow system commands
5
6
  LOG_NAME="realtime.log"
6
7
 
7
8
  attr_accessor :running, :runner, :stats_thread
@@ -8,14 +8,13 @@ class Scout::Realtime::Cpu < Scout::Realtime::Metric
8
8
  :steal => { 'units' => '%', 'precision' => 1 },
9
9
  :interrupts => { 'units' => '/sec', 'precision' => 1 },
10
10
  :procs_running => { 'units' => '', 'precision' => 0 },
11
- :procs_blocked => { 'units' => '', 'precision' => 0 },
12
- :last_minute => { 'units' => '', 'precision' => 2 },
13
- :last_five_minutes => { 'units' => '', 'precision' => 2 },
14
- :last_fifteen_minutes => { 'units' => '', 'precision' => 2 }
11
+ :procs_blocked => { 'units' => '', 'precision' => 0 }
15
12
  }
16
13
 
17
14
  def initialize
18
- @collector = ServerMetrics::Cpu.new()
15
+ # load average metrics aren't displayed in scout_realtime and the call to grab this is a system call,
16
+ # which is slow. avoids this.
17
+ @collector = ServerMetrics::Cpu.new(:skip_load => true)
19
18
  super
20
19
  end
21
20
  end
@@ -15,7 +15,7 @@ class Scout::Realtime::Disk < Scout::Realtime::Metric
15
15
  }
16
16
 
17
17
  def initialize
18
- @collector = ServerMetrics::Disk.new()
18
+ @collector = ServerMetrics::Disk.new(:ttl => Scout::Realtime::Main::TTL)
19
19
  super
20
20
  end
21
21
  end
@@ -1,5 +1,5 @@
1
1
  module Scout
2
2
  module Realtime
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5.pre"
4
4
  end
5
5
  end
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: 0.5.4
5
- prerelease:
4
+ version: 0.5.5.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-02-18 00:00:00.000000000 Z
14
+ date: 2014-03-03 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: '0'
716
+ version: 1.3.1
717
717
  requirements: []
718
718
  rubyforge_project:
719
719
  rubygems_version: 1.8.23