instrumental_tools 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: deeb3bca1cfaecc407a6fed2dd89a65a28d56ab1
4
+ data.tar.gz: 323ef81462e8919bfc9ffee0868b434da5e209ff
5
+ SHA512:
6
+ metadata.gz: 238ed6bb1d4c9190538c2ba1ff4610860f3ea4a14708e1f681ee4354f6c26037f8704e9dfa8ac7efe04f83d5d9719b0064898b3e99e8220d44bed56f5e1f9cfd
7
+ data.tar.gz: 7a12fe9e202bb4f8cdae0dc4bbe0099d36c6c292a66fbc06785c17909d4e990b065b8c6db048a253b2c6a469f9c321f4581340288c250d3ef9540fb44a4231bd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 0.5.6 [January 31st, 2014]
2
+ * Add tmpfs to disk stats
3
+
1
4
  ### 0.5.5 [April 30th, 2013]
2
5
  * Update to latest instrumental_agent
3
6
 
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source :rubygems
1
+ source "https://rubygems.org/"
2
2
 
3
3
  gemspec
@@ -134,9 +134,13 @@ class SystemInspector
134
134
 
135
135
  def self.df
136
136
  output = {}
137
- `df -k`.split("\n").grep(%r{^/dev/}).each do |line|
137
+ `df -ka`.split("\n").grep(%r{^(/dev/|tmpfs)}).each do |line|
138
138
  device, total, used, available, capacity, mount = line.split(/\s+/)
139
- names = [File.basename(device)]
139
+ if device == "tmpfs"
140
+ names = ["tmpfs_#{mount.gsub(/[^[:alnum:]]/, "_")}".gsub(/_+/, "_")]
141
+ else
142
+ names = [File.basename(device)]
143
+ end
140
144
  names << 'root' if mount == '/'
141
145
  names.each do |name|
142
146
  output["disk.#{name}.total_mb"] = total.to_f / 1024
@@ -1,5 +1,5 @@
1
1
  module Instrumental
2
2
  module Tools
3
- VERSION = '0.5.5'
3
+ VERSION = '0.5.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instrumental_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
5
- prerelease:
4
+ version: 0.5.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Elijah Miller
@@ -12,70 +11,62 @@ authors:
12
11
  autorequire:
13
12
  bindir: bin
14
13
  cert_chain: []
15
- date: 2013-04-30 00:00:00.000000000 Z
14
+ date: 2014-01-31 00:00:00.000000000 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: json
19
18
  requirement: !ruby/object:Gem::Requirement
20
- none: false
21
19
  requirements:
22
- - - ! '>='
20
+ - - ">="
23
21
  - !ruby/object:Gem::Version
24
22
  version: '0'
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0'
33
30
  - !ruby/object:Gem::Dependency
34
31
  name: instrumental_agent
35
32
  requirement: !ruby/object:Gem::Requirement
36
- none: false
37
33
  requirements:
38
- - - ! '>='
34
+ - - ">="
39
35
  - !ruby/object:Gem::Version
40
36
  version: 0.12.3
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
- - - ! '>='
41
+ - - ">="
47
42
  - !ruby/object:Gem::Version
48
43
  version: 0.12.3
49
44
  - !ruby/object:Gem::Dependency
50
45
  name: pidly
51
46
  requirement: !ruby/object:Gem::Requirement
52
- none: false
53
47
  requirements:
54
- - - ! '>='
48
+ - - ">="
55
49
  - !ruby/object:Gem::Version
56
50
  version: 0.1.3
57
51
  type: :runtime
58
52
  prerelease: false
59
53
  version_requirements: !ruby/object:Gem::Requirement
60
- none: false
61
54
  requirements:
62
- - - ! '>='
55
+ - - ">="
63
56
  - !ruby/object:Gem::Version
64
57
  version: 0.1.3
65
58
  - !ruby/object:Gem::Dependency
66
59
  name: rake
67
60
  requirement: !ruby/object:Gem::Requirement
68
- none: false
69
61
  requirements:
70
- - - ! '>='
62
+ - - ">="
71
63
  - !ruby/object:Gem::Version
72
64
  version: '0'
73
65
  type: :development
74
66
  prerelease: false
75
67
  version_requirements: !ruby/object:Gem::Requirement
76
- none: false
77
68
  requirements:
78
- - - ! '>='
69
+ - - ">="
79
70
  - !ruby/object:Gem::Version
80
71
  version: '0'
81
72
  description: A collection of scripts useful for monitoring servers and services with
@@ -87,7 +78,7 @@ executables:
87
78
  extensions: []
88
79
  extra_rdoc_files: []
89
80
  files:
90
- - .gitignore
81
+ - ".gitignore"
91
82
  - CHANGELOG.md
92
83
  - Gemfile
93
84
  - LICENSE
@@ -99,32 +90,25 @@ files:
99
90
  - lib/instrumental_tools/version.rb
100
91
  homepage: http://github.com/fastestforward/instrumental_tools
101
92
  licenses: []
93
+ metadata: {}
102
94
  post_install_message:
103
95
  rdoc_options: []
104
96
  require_paths:
105
97
  - lib
106
98
  required_ruby_version: !ruby/object:Gem::Requirement
107
- none: false
108
99
  requirements:
109
- - - ! '>='
100
+ - - ">="
110
101
  - !ruby/object:Gem::Version
111
102
  version: '0'
112
- segments:
113
- - 0
114
- hash: 2857348021979100116
115
103
  required_rubygems_version: !ruby/object:Gem::Requirement
116
- none: false
117
104
  requirements:
118
- - - ! '>='
105
+ - - ">="
119
106
  - !ruby/object:Gem::Version
120
107
  version: '0'
121
- segments:
122
- - 0
123
- hash: 2857348021979100116
124
108
  requirements: []
125
109
  rubyforge_project:
126
- rubygems_version: 1.8.24
110
+ rubygems_version: 2.2.0
127
111
  signing_key:
128
- specification_version: 3
112
+ specification_version: 4
129
113
  summary: Command line tools for Instrumental
130
114
  test_files: []