instrumental_tools 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/bin/instrument_server +4 -3
- data/instrumental_tools.gemspec +1 -1
- data/lib/instrumental_tools/version.rb +1 -1
- metadata +7 -7
data/CHANGELOG.md
CHANGED
data/bin/instrument_server
CHANGED
@@ -327,6 +327,7 @@ end
|
|
327
327
|
|
328
328
|
class ServerController < Pidly::Control
|
329
329
|
COMMANDS = [:start, :stop, :status, :restart, :clean, :kill]
|
330
|
+
REPORT_INTERVAL = 60
|
330
331
|
|
331
332
|
attr_accessor :run_options
|
332
333
|
|
@@ -351,8 +352,8 @@ class ServerController < Pidly::Control
|
|
351
352
|
puts "Collecting stats under the hostname: #{options[:hostname]}"
|
352
353
|
loop do
|
353
354
|
t = Time.now.to_i
|
354
|
-
|
355
|
-
sleep [
|
355
|
+
next_run_at = (t - t % REPORT_INTERVAL) + REPORT_INTERVAL
|
356
|
+
sleep [next_run_at - t, 0].max
|
356
357
|
inspector = SystemInspector.new
|
357
358
|
inspector.load_all
|
358
359
|
inspector.gauges.each do |stat, value|
|
@@ -383,7 +384,7 @@ end
|
|
383
384
|
|
384
385
|
options = {
|
385
386
|
:daemon => false,
|
386
|
-
:collector => 'instrumentalapp.com',
|
387
|
+
:collector => 'collector.instrumentalapp.com',
|
387
388
|
:port => '8000',
|
388
389
|
:hostname => Socket.gethostname,
|
389
390
|
}
|
data/instrumental_tools.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.add_runtime_dependency(%q<json>, [">=0"])
|
18
|
-
s.add_runtime_dependency(%q<instrumental_agent>, [">=0.12.
|
18
|
+
s.add_runtime_dependency(%q<instrumental_agent>, [">=0.12.3"])
|
19
19
|
s.add_runtime_dependency(%q<pidly>, [">=0.1.3"])
|
20
20
|
s.add_development_dependency(%q<rake>, [">=0"])
|
21
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instrumental_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-
|
15
|
+
date: 2013-04-30 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: json
|
@@ -37,7 +37,7 @@ dependencies:
|
|
37
37
|
requirements:
|
38
38
|
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.12.
|
40
|
+
version: 0.12.3
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - ! '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.12.
|
48
|
+
version: 0.12.3
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: pidly
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
segments:
|
113
113
|
- 0
|
114
|
-
hash:
|
114
|
+
hash: 2857348021979100116
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
@@ -120,10 +120,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
segments:
|
122
122
|
- 0
|
123
|
-
hash:
|
123
|
+
hash: 2857348021979100116
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 1.8.
|
126
|
+
rubygems_version: 1.8.24
|
127
127
|
signing_key:
|
128
128
|
specification_version: 3
|
129
129
|
summary: Command line tools for Instrumental
|