instrumental_tools 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +39 -0
- data/bin/instrument_server +4 -3
- data/instrumental_tools.gemspec +1 -1
- data/lib/instrumental_tools/version.rb +1 -1
- metadata +91 -55
data/CHANGELOG.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
### 0.5.1 [February 9th, 2012]
|
2
|
+
* Removing symbol to proc use for compatibility with older version of Ruby
|
3
|
+
|
4
|
+
### 0.5.0 [January 16, 2012]
|
5
|
+
* Remove out-dated instrumental binary
|
6
|
+
|
7
|
+
### 0.4.2 [January 12, 2012]
|
8
|
+
* Limit IO monitoring to mounted devices
|
9
|
+
|
10
|
+
### 0.4.1 [January 11, 2012]
|
11
|
+
* README and --help improvements
|
12
|
+
|
13
|
+
### 0.4.0 [January 11, 2012]
|
14
|
+
* More capistrano tasks (Joel Meador)
|
15
|
+
|
16
|
+
### 0.3.2 [January 11, 2012]
|
17
|
+
* Fix disk IO calculation issue
|
18
|
+
* Remove depency on iostat
|
19
|
+
|
20
|
+
### 0.3.1 [January 11, 2012]
|
21
|
+
* Fixed critical issue with cpu.in_use metric on Linux
|
22
|
+
|
23
|
+
### 0.3.0 [January 11, 2012]
|
24
|
+
* Fix CPU usage calculation issue on Linux
|
25
|
+
* Configurable hostname reporting
|
26
|
+
* capistrano tasks for managing instrument_server (Joel Meador)
|
27
|
+
|
28
|
+
### 0.2.1 [December 28, 2011]
|
29
|
+
* Added missing runtime dependency for pidly
|
30
|
+
|
31
|
+
### 0.2.0 [December 27, 2011]
|
32
|
+
* Real command line options
|
33
|
+
* Daemonized instrument_server
|
34
|
+
|
35
|
+
### 0.1.1 [December 13, 2011]
|
36
|
+
* Fixed issue when collector was not supplied
|
37
|
+
|
38
|
+
### 0.1.0 [December 12, 2011]
|
39
|
+
* Initial release
|
data/bin/instrument_server
CHANGED
@@ -153,10 +153,11 @@ class SystemInspector
|
|
153
153
|
|
154
154
|
def self.cpu
|
155
155
|
categories = [:user, :nice, :system, :idle, :iowait]
|
156
|
-
values = `cat /proc/stat | grep cpu[^0-9]`.chomp.split(/\s+/).slice(1, 5).map
|
156
|
+
values = `cat /proc/stat | grep cpu[^0-9]`.chomp.split(/\s+/).slice(1, 5).map { |v| v.to_f }
|
157
157
|
SystemInspector.memory.store(:cpu_values, values.dup)
|
158
158
|
if previous_values = SystemInspector.memory.retrieve(:cpu_values)
|
159
|
-
|
159
|
+
index = -1
|
160
|
+
values.collect!{ |value| (previous_values[index += 1] - value).abs }
|
160
161
|
end
|
161
162
|
data = Hash[*categories.zip(values).flatten]
|
162
163
|
total = values.inject { |memo, value| memo + value }
|
@@ -255,7 +256,7 @@ class SystemInspector
|
|
255
256
|
end
|
256
257
|
|
257
258
|
def self.filesystem
|
258
|
-
allocated, unused, max = `sysctl fs.file-nr`.split[-3..-1].map
|
259
|
+
allocated, unused, max = `sysctl fs.file-nr`.split[-3..-1].map { |v| v.to_i }
|
259
260
|
open_files = allocated - unused
|
260
261
|
{ 'filesystem.open_files' => open_files,
|
261
262
|
'filesystem.max_open_files' => max,
|
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.
|
18
|
+
s.add_runtime_dependency(%q<instrumental_agent>, [">=0.8.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,10 +1,15 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: instrumental_tools
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 9
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Elijah Miller
|
9
14
|
- Christopher Zelenak
|
10
15
|
- Kristopher Chambers
|
@@ -12,63 +17,83 @@ authors:
|
|
12
17
|
autorequire:
|
13
18
|
bindir: bin
|
14
19
|
cert_chain: []
|
15
|
-
|
16
|
-
|
17
|
-
|
20
|
+
|
21
|
+
date: 2012-02-09 00:00:00 -05:00
|
22
|
+
default_executable:
|
23
|
+
dependencies:
|
24
|
+
- !ruby/object:Gem::Dependency
|
18
25
|
name: json
|
19
|
-
|
26
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
20
27
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
|
25
|
-
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 3
|
32
|
+
segments:
|
33
|
+
- 0
|
34
|
+
version: "0"
|
26
35
|
prerelease: false
|
27
|
-
|
28
|
-
|
36
|
+
requirement: *id001
|
37
|
+
type: :runtime
|
38
|
+
- !ruby/object:Gem::Dependency
|
29
39
|
name: instrumental_agent
|
30
|
-
|
40
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
31
41
|
none: false
|
32
|
-
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
|
36
|
-
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 57
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
- 8
|
49
|
+
- 3
|
50
|
+
version: 0.8.3
|
37
51
|
prerelease: false
|
38
|
-
|
39
|
-
|
52
|
+
requirement: *id002
|
53
|
+
type: :runtime
|
54
|
+
- !ruby/object:Gem::Dependency
|
40
55
|
name: pidly
|
41
|
-
|
56
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
42
57
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 29
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
- 1
|
65
|
+
- 3
|
46
66
|
version: 0.1.3
|
47
|
-
type: :runtime
|
48
67
|
prerelease: false
|
49
|
-
|
50
|
-
|
68
|
+
requirement: *id003
|
69
|
+
type: :runtime
|
70
|
+
- !ruby/object:Gem::Dependency
|
51
71
|
name: rake
|
52
|
-
|
72
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
53
73
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
version: "0"
|
59
81
|
prerelease: false
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
email:
|
82
|
+
requirement: *id004
|
83
|
+
type: :development
|
84
|
+
description: A collection of scripts useful for monitoring servers and services with Instrumental (instrumentalapp.com)
|
85
|
+
email:
|
64
86
|
- support@instrumentalapp.com
|
65
|
-
executables:
|
87
|
+
executables:
|
66
88
|
- gitstrumental
|
67
89
|
- instrument_server
|
68
90
|
extensions: []
|
91
|
+
|
69
92
|
extra_rdoc_files: []
|
70
|
-
|
93
|
+
|
94
|
+
files:
|
71
95
|
- .gitignore
|
96
|
+
- CHANGELOG.md
|
72
97
|
- Gemfile
|
73
98
|
- README.md
|
74
99
|
- Rakefile
|
@@ -77,28 +102,39 @@ files:
|
|
77
102
|
- instrumental_tools.gemspec
|
78
103
|
- lib/instrumental_tools/capistrano.rb
|
79
104
|
- lib/instrumental_tools/version.rb
|
105
|
+
has_rdoc: true
|
80
106
|
homepage: http://github.com/fastestforward/instrumental_tools
|
81
107
|
licenses: []
|
108
|
+
|
82
109
|
post_install_message:
|
83
110
|
rdoc_options: []
|
84
|
-
|
111
|
+
|
112
|
+
require_paths:
|
85
113
|
- lib
|
86
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
87
115
|
none: false
|
88
|
-
requirements:
|
89
|
-
- -
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
|
92
|
-
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
hash: 3
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
124
|
none: false
|
94
|
-
requirements:
|
95
|
-
- -
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
hash: 3
|
129
|
+
segments:
|
130
|
+
- 0
|
131
|
+
version: "0"
|
98
132
|
requirements: []
|
133
|
+
|
99
134
|
rubyforge_project:
|
100
|
-
rubygems_version: 1.
|
135
|
+
rubygems_version: 1.3.7
|
101
136
|
signing_key:
|
102
137
|
specification_version: 3
|
103
138
|
summary: Command line tools for Instrumental
|
104
139
|
test_files: []
|
140
|
+
|