server_metrics 1.2.2 → 1.2.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 CHANGED
@@ -1,13 +1,17 @@
1
- # 1.2.2
1
+ ## 1.2.3
2
+
3
+ * Skipping mapped devices in disk collector
4
+
5
+ ## 1.2.2
2
6
 
3
7
  * Setting LC_ALL for disk
4
8
  * More forgiving #linux? check
5
9
 
6
- # 1.2.1
10
+ ## 1.2.1
7
11
 
8
12
  * Fix for OSX Memory to support 'unused' in addition to 'free'
9
13
 
10
- # 1.2.0
14
+ ## 1.2.0
11
15
 
12
16
  Performance related:
13
17
 
@@ -14,7 +14,7 @@ class ServerMetrics::Disk < ServerMetrics::MultiCollector
14
14
 
15
15
  devices.each do |device|
16
16
  get_sizes(device) # does its own reporting
17
- get_stats(device) if linux? # does its own reporting
17
+ get_io_stats(device) if linux? # does its own reporting
18
18
  end
19
19
  end
20
20
 
@@ -51,6 +51,8 @@ class ServerMetrics::Disk < ServerMetrics::MultiCollector
51
51
 
52
52
  # select the right line
53
53
  hash = parsed_lines.select{|l| l["Filesystem"] == device}.first
54
+ # device wasn't found. could be a mapped device. skip over.
55
+ return if hash.nil?
54
56
  result = {}
55
57
  hash.each_pair do |key,value|
56
58
  key=normalize_key(key) # downcase, make a symbol, etc
@@ -62,7 +64,7 @@ class ServerMetrics::Disk < ServerMetrics::MultiCollector
62
64
  end
63
65
 
64
66
  # called from build_report for each device
65
- def get_stats(device)
67
+ def get_io_stats(device)
66
68
  stats = iostat(device)
67
69
 
68
70
  if stats
@@ -1,3 +1,3 @@
1
1
  module ServerMetrics
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3.pre"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server_metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
5
- prerelease:
4
+ version: 1.2.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-12 00:00:00.000000000 Z
14
+ date: 2014-03-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -161,9 +161,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  none: false
163
163
  requirements:
164
- - - ! '>='
164
+ - - ! '>'
165
165
  - !ruby/object:Gem::Version
166
- version: '0'
166
+ version: 1.3.1
167
167
  requirements: []
168
168
  rubyforge_project:
169
169
  rubygems_version: 1.8.23