cloudscopes 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/monitoring.yaml +1 -1
- data/lib/cloudscopes.rb +1 -0
- data/lib/cloudscopes/memory.rb +14 -0
- data/lib/cloudscopes/system.rb +0 -11
- data/lib/cloudscopes/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3db63861f9fdc9fa82e577f6bbce20d0217915f1
|
4
|
+
data.tar.gz: 7ba62cb99093368e8d401660a6b0e1f1ea225e5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaa0318e8dc45f876d714dea8cff0603aebbe25e6e560feb5e089aeef5e57b59f39dd5cf933b03e22e401772670fa6fe7504e2f2a1736d6f07103263a4b165c7
|
7
|
+
data.tar.gz: b4696c27e6cd1de88878059386b0e029490713c1fe3bda3d14c89b916f64d8a003f7851e1903e5d34af64fd311144a05a243606fd6699ab3629772323b06d4cc
|
data/config/monitoring.yaml
CHANGED
data/lib/cloudscopes.rb
CHANGED
@@ -12,6 +12,7 @@ require 'cloudscopes/configuration'
|
|
12
12
|
require 'cloudscopes/options'
|
13
13
|
require 'cloudscopes/globals'
|
14
14
|
require 'cloudscopes/sample'
|
15
|
+
require 'cloudscopes/memory'
|
15
16
|
require 'cloudscopes/system'
|
16
17
|
require 'cloudscopes/filesystem'
|
17
18
|
require 'cloudscopes/redis'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Cloudscopes
|
2
|
+
|
3
|
+
class Memory
|
4
|
+
|
5
|
+
File.read('/proc/meminfo').split("\n").collect do |line|
|
6
|
+
line =~ /(\w+):\s+(\d+)/ and { name: $1, value: $2.to_i }
|
7
|
+
end.each do |data|
|
8
|
+
next if data.nil?
|
9
|
+
define_method(data[:name]) { data[:value] }
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
data/lib/cloudscopes/system.rb
CHANGED
@@ -1,16 +1,5 @@
|
|
1
1
|
module Cloudscopes
|
2
2
|
|
3
|
-
class Memory
|
4
|
-
|
5
|
-
File.read('/proc/meminfo').split("\n").collect do |line|
|
6
|
-
line =~ /(\w+):\s+(\d+)/ and { name: $1, value: $2.to_i }
|
7
|
-
end.each do |data|
|
8
|
-
next if data.nil?
|
9
|
-
define_method(data[:name]) { data[:value] }
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
3
|
class System
|
15
4
|
|
16
5
|
def loadavg5
|
data/lib/cloudscopes/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudscopes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oded Arbel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/cloudscopes/configuration.rb
|
114
114
|
- lib/cloudscopes/filesystem.rb
|
115
115
|
- lib/cloudscopes/globals.rb
|
116
|
+
- lib/cloudscopes/memory.rb
|
116
117
|
- lib/cloudscopes/network.rb
|
117
118
|
- lib/cloudscopes/options.rb
|
118
119
|
- lib/cloudscopes/redis.rb
|