metrix 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in metrix.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Tobias Schwab
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Metrix
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'metrix'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install metrix
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/metrix ADDED
@@ -0,0 +1,68 @@
1
+ #!/usr/bin/env ruby
2
+ $:.push(File.expand_path("../../lib", __FILE__))
3
+ require "time"
4
+ require "metrix"
5
+ require "metrix/elastic_search"
6
+ require "metrix/graphite"
7
+ require "metrix/mongodb"
8
+ require "syslog/logger"
9
+ require "optparse"
10
+
11
+ Metrix.logger = Syslog::Logger.new("metrix")
12
+
13
+ metrics = []
14
+ interval = 10
15
+ graphite_host = nil
16
+ opts = OptionParser.new do |o|
17
+ o.on("--mongodb") do
18
+ metrics << :mongodb
19
+ end
20
+
21
+ o.on("--es") do
22
+ metrics << :es
23
+ end
24
+
25
+ o.on("--graphite-host HOST") do |value|
26
+ graphite_host = value
27
+ end
28
+ end
29
+
30
+ opts.parse(ARGV)
31
+
32
+ if graphite_host.nil?
33
+ puts "ERROR: graphite-host is required"
34
+ abort opts.to_s
35
+ end
36
+
37
+ started = Time.now
38
+ graphite = Graphite.new(graphite_host, 2003)
39
+ cnt = 0
40
+ while true
41
+ begin
42
+ cnt += 1
43
+ now = Time.now.utc
44
+ if metrics.include?(:es)
45
+ Metrix.logger.info "fetching elasticsearch metrix"
46
+ Metrix::ElasticSearch.from_uri("http://127.0.0.1:9200/_status").metrics.each do |k, v|
47
+ graphite << "elastic_search.#{k} #{v} #{now.to_i}"
48
+ end
49
+ end
50
+
51
+ if metrics.include?(:mongodb)
52
+ Metrix.logger.info "fetching mongodb metrix"
53
+ Metrix::Mongodb.from_uri("http://127.0.0.1:28017/serverStatus").metrics.each do |k, v|
54
+ graphite << "mongodb.#{k} #{v} #{now.to_i}"
55
+ end
56
+ end
57
+ graphite.flush
58
+ diff = Time.now - now
59
+ Metrix.logger.info "finished run in %.06f" % [diff]
60
+ rescue SystemExit
61
+ exit
62
+ rescue => err
63
+ logger.error "#{err.message}"
64
+ logger.error "#{err.backtrace.inspect}"
65
+ ensure
66
+ sleep interval - (Time.now - started - cnt * interval)
67
+ end
68
+ end
@@ -0,0 +1,49 @@
1
+ require "net/http"
2
+ require "json"
3
+
4
+ class Base
5
+ attr_reader :attributes
6
+
7
+ class << self
8
+ def from_json(json)
9
+ self.new(JSON.load(json))
10
+ end
11
+
12
+ def from_uri(uri)
13
+ from_json(Net::HTTP.get(URI(uri)))
14
+ end
15
+
16
+ def ignore_metrics(*metrics)
17
+ @ignore = [metrics].flatten
18
+ end
19
+
20
+ def ignore
21
+ @ignore ||= []
22
+ end
23
+ end
24
+
25
+ def initialize(attributes)
26
+ @attributes = attributes
27
+ end
28
+
29
+ def metrics
30
+ map_attributes(attributes).reject { |k, v| self.class.ignore.include?(k) }
31
+ end
32
+
33
+ def map_attributes(attributes, prefix = nil)
34
+ attributes.inject({}) do |hash, (k, v)|
35
+ path = [prefix, k].compact.join(".")
36
+ case v
37
+ when Hash
38
+ hash.merge!(map_attributes(v, path))
39
+ when Array
40
+ v.each_with_index do |array_value, i|
41
+ hash.merge!(map_attributes(v, "#{path}i"))
42
+ end
43
+ when Numeric
44
+ hash[path] = v
45
+ end
46
+ hash
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,7 @@
1
+ require "metrix/base"
2
+
3
+ module Metrix
4
+ class ElasticSearch < Base
5
+ ignore_metrics []
6
+ end
7
+ end
@@ -0,0 +1,41 @@
1
+ require "socket"
2
+
3
+ class Graphite
4
+ def initialize(host, port = 2003)
5
+ @host = host
6
+ @port = port
7
+ end
8
+
9
+ def <<(m)
10
+ metrics << m
11
+ flush if metrics.count > 90
12
+ end
13
+
14
+ def flush
15
+ if metrics.empty?
16
+ logger.info "nothing to send"
17
+ return
18
+ end
19
+ started = Time.now
20
+ Socket.tcp(@host, @port) do |socket|
21
+ metrics.each do |m|
22
+ logger.debug "sending #{m}"
23
+ socket.puts "metrix.#{hostname}.#{m}"
24
+ end
25
+ end
26
+ logger.info "sent #{metrics.count} in %.06fs" % [Time.now - started]
27
+ metrics.clear
28
+ end
29
+
30
+ def hostname
31
+ @hostname ||= `hostname`.strip
32
+ end
33
+
34
+ def metrics
35
+ @metrics ||= []
36
+ end
37
+
38
+ def logger
39
+ Metrix.logger
40
+ end
41
+ end
@@ -0,0 +1,7 @@
1
+ require "metrix/base"
2
+
3
+ module Metrix
4
+ class Mongodb < Base
5
+ ignore_metrics %w(ok mem.bits pid uptime uptimeMillis uptimeEstimate)
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module Metrix
2
+ VERSION = "0.0.1"
3
+ end
data/lib/metrix.rb ADDED
@@ -0,0 +1,13 @@
1
+ require "metrix/version"
2
+
3
+ module Metrix
4
+ class << self
5
+ attr_writer :logger
6
+
7
+ def logger
8
+ return @logger if @logger
9
+ require "logger"
10
+ @logger ||= Logger.new(STDOUT)
11
+ end
12
+ end
13
+ end
data/metrix.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'metrix/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "metrix"
8
+ gem.version = Metrix::VERSION
9
+ gem.authors = ["Tobias Schwab"]
10
+ gem.email = ["tobias.schwab@dynport.de"]
11
+ gem.description = %q{Ruby Metrics Library}
12
+ gem.summary = %q{Ruby Metrics Library}
13
+ gem.homepage = ""
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
19
+
20
+ gem.add_runtime_dependency("SyslogLogger")
21
+ gem.add_runtime_dependency("json")
22
+ gem.add_development_dependency("rspec")
23
+ gem.add_development_dependency("rake")
24
+ end
@@ -0,0 +1 @@
1
+ {"ok":true,"_shards":{"total":10,"successful":5,"failed":0},"indices":{"search":{"index":{"primary_size":"1.9kb","primary_size_in_bytes":2008,"size":"1.9kb","size_in_bytes":2008},"translog":{"operations":1},"docs":{"num_docs":1,"max_doc":1,"deleted_docs":0},"merges":{"current":0,"current_docs":0,"current_size":"0b","current_size_in_bytes":0,"total":0,"total_time":"0s","total_time_in_millis":0,"total_docs":0,"total_size":"0b","total_size_in_bytes":0},"refresh":{"total":6,"total_time":"124ms","total_time_in_millis":124},"flush":{"total":0,"total_time":"0s","total_time_in_millis":0},"shards":{"0":[{"routing":{"state":"STARTED","primary":true,"node":"gOYFg-VoRHm3AwCvY9i3Lg","relocating_node":null,"shard":0,"index":"search"},"state":"STARTED","index":{"size":"99b","size_in_bytes":99},"translog":{"id":1370016021037,"operations":0},"docs":{"num_docs":0,"max_doc":0,"deleted_docs":0},"merges":{"current":0,"current_docs":0,"current_size":"0b","current_size_in_bytes":0,"total":0,"total_time":"0s","total_time_in_millis":0,"total_docs":0,"total_size":"0b","total_size_in_bytes":0},"refresh":{"total":1,"total_time":"0s","total_time_in_millis":0},"flush":{"total":0,"total_time":"0s","total_time_in_millis":0}}],"1":[{"routing":{"state":"STARTED","primary":true,"node":"gOYFg-VoRHm3AwCvY9i3Lg","relocating_node":null,"shard":1,"index":"search"},"state":"STARTED","index":{"size":"99b","size_in_bytes":99},"translog":{"id":1370016021055,"operations":0},"docs":{"num_docs":0,"max_doc":0,"deleted_docs":0},"merges":{"current":0,"current_docs":0,"current_size":"0b","current_size_in_bytes":0,"total":0,"total_time":"0s","total_time_in_millis":0,"total_docs":0,"total_size":"0b","total_size_in_bytes":0},"refresh":{"total":1,"total_time":"0s","total_time_in_millis":0},"flush":{"total":0,"total_time":"0s","total_time_in_millis":0}}],"2":[{"routing":{"state":"STARTED","primary":true,"node":"gOYFg-VoRHm3AwCvY9i3Lg","relocating_node":null,"shard":2,"index":"search"},"state":"STARTED","index":{"size":"99b","size_in_bytes":99},"translog":{"id":1370016021137,"operations":0},"docs":{"num_docs":0,"max_doc":0,"deleted_docs":0},"merges":{"current":0,"current_docs":0,"current_size":"0b","current_size_in_bytes":0,"total":0,"total_time":"0s","total_time_in_millis":0,"total_docs":0,"total_size":"0b","total_size_in_bytes":0},"refresh":{"total":1,"total_time":"0s","total_time_in_millis":0},"flush":{"total":0,"total_time":"0s","total_time_in_millis":0}}],"3":[{"routing":{"state":"STARTED","primary":true,"node":"gOYFg-VoRHm3AwCvY9i3Lg","relocating_node":null,"shard":3,"index":"search"},"state":"STARTED","index":{"size":"99b","size_in_bytes":99},"translog":{"id":1370016021204,"operations":0},"docs":{"num_docs":0,"max_doc":0,"deleted_docs":0},"merges":{"current":0,"current_docs":0,"current_size":"0b","current_size_in_bytes":0,"total":0,"total_time":"0s","total_time_in_millis":0,"total_docs":0,"total_size":"0b","total_size_in_bytes":0},"refresh":{"total":1,"total_time":"0s","total_time_in_millis":0},"flush":{"total":0,"total_time":"0s","total_time_in_millis":0}}],"4":[{"routing":{"state":"STARTED","primary":true,"node":"gOYFg-VoRHm3AwCvY9i3Lg","relocating_node":null,"shard":4,"index":"search"},"state":"STARTED","index":{"size":"1.5kb","size_in_bytes":1612},"translog":{"id":1370016021270,"operations":1},"docs":{"num_docs":1,"max_doc":1,"deleted_docs":0},"merges":{"current":0,"current_docs":0,"current_size":"0b","current_size_in_bytes":0,"total":0,"total_time":"0s","total_time_in_millis":0,"total_docs":0,"total_size":"0b","total_size_in_bytes":0},"refresh":{"total":2,"total_time":"124ms","total_time_in_millis":124},"flush":{"total":0,"total_time":"0s","total_time_in_millis":0}}]}}}}
@@ -0,0 +1,63 @@
1
+ { "host" : "tobias-mba.local",
2
+ "version" : "2.0.4",
3
+ "process" : "mongod",
4
+ "uptime" : 36,
5
+ "uptimeEstimate" : 32,
6
+ "localTime" : { "$date" : "Fri May 31 17:56:54 2013" },
7
+ "globalLock" : { "totalTime" : 36018171,
8
+ "lockTime" : 347,
9
+ "ratio" : 9.634026114207743e-06,
10
+ "currentQueue" : { "total" : 0,
11
+ "readers" : 0,
12
+ "writers" : 0 },
13
+ "activeClients" : { "total" : 0,
14
+ "readers" : 0,
15
+ "writers" : 0 } },
16
+ "mem" : { "bits" : 64,
17
+ "resident" : 14,
18
+ "virtual" : 2414,
19
+ "supported" : true,
20
+ "mapped" : 0,
21
+ "mappedWithJournal" : 0 },
22
+ "connections" : { "current" : 0,
23
+ "available" : 2048 },
24
+ "extra_info" : { "note" : "fields vary by platform" },
25
+ "indexCounters" : { "btree" : { "accesses" : 0,
26
+ "hits" : 0,
27
+ "misses" : 0,
28
+ "resets" : 0,
29
+ "missRatio" : 0 } },
30
+ "backgroundFlushing" : { "flushes" : 0,
31
+ "total_ms" : 0,
32
+ "average_ms" : 0,
33
+ "last_ms" : 0,
34
+ "last_finished" : { "$date" : 0 } },
35
+ "cursors" : { "totalOpen" : 0,
36
+ "clientCursors_size" : 0,
37
+ "timedOut" : 0 },
38
+ "network" : { "bytesIn" : 0,
39
+ "bytesOut" : 0,
40
+ "numRequests" : 0 },
41
+ "opcounters" : { "insert" : 0,
42
+ "query" : 1,
43
+ "update" : 0,
44
+ "delete" : 0,
45
+ "getmore" : 0,
46
+ "command" : 0 },
47
+ "asserts" : { "regular" : 0,
48
+ "warning" : 0,
49
+ "msg" : 0,
50
+ "user" : 0,
51
+ "rollovers" : 0 },
52
+ "writeBacksQueued" : false,
53
+ "dur" : { "commits" : 29,
54
+ "journaledMB" : 0,
55
+ "writeToDataFilesMB" : 0,
56
+ "compression" : 0,
57
+ "commitsInWriteLock" : 0,
58
+ "earlyCommits" : 0,
59
+ "timeMs" : { "dt" : 3036,
60
+ "prepLogBuffer" : 0,
61
+ "writeToJournal" : 0,
62
+ "writeToDataFiles" : 0,
63
+ "remapPrivateView" : 0 } } }
@@ -0,0 +1,42 @@
1
+ require "spec_helper"
2
+ require "metrix/elastic_search"
3
+
4
+ describe "Metrox::ElasticSearch", :wip do
5
+ let(:payload) { FIXTURES_PATH.join("es_status.json").read }
6
+ subject(:es_status) { Metrix::ElasticSearch.from_json(payload) }
7
+ it { should_not be_nil }
8
+ it { subject.attributes.should be_kind_of(Hash) }
9
+
10
+ describe "#metrics" do
11
+ subject(:metrics) { es_status.metrics }
12
+ it { should be_kind_of(Hash) }
13
+ it { should_not be_empty }
14
+
15
+ {
16
+ "_shards.total"=>10,
17
+ "_shards.successful"=>5,
18
+ "_shards.failed"=>0,
19
+ "indices.search.index.primary_size_in_bytes"=>2008,
20
+ "indices.search.index.size_in_bytes"=>2008,
21
+ "indices.search.translog.operations"=>1,
22
+ "indices.search.docs.num_docs"=>1,
23
+ "indices.search.docs.max_doc"=>1,
24
+ "indices.search.docs.deleted_docs"=>0,
25
+ "indices.search.merges.current"=>0,
26
+ "indices.search.merges.current_docs"=>0,
27
+ "indices.search.merges.current_size_in_bytes"=>0,
28
+ "indices.search.merges.total"=>0,
29
+ "indices.search.merges.total_time_in_millis"=>0,
30
+ "indices.search.merges.total_docs"=>0,
31
+ "indices.search.merges.total_size_in_bytes"=>0,
32
+ "indices.search.refresh.total"=>6,
33
+ "indices.search.refresh.total_time_in_millis"=>124,
34
+ "indices.search.flush.total"=>0,
35
+ }.each do |k, v|
36
+ it "should set attributes #{k.inspect} to #{v.inspect}" do
37
+ subject[k].should eq(v)
38
+ end
39
+ end
40
+ it { subject.keys.count.should eq(20) }
41
+ end
42
+ end
@@ -0,0 +1,39 @@
1
+ require "spec_helper"
2
+ require "metrix/mongodb"
3
+
4
+ describe "Metrix::Mongodb", :wip do
5
+ let(:payload) { FIXTURES_PATH.join("mongo_server_status.json").read }
6
+
7
+ subject(:status) { Metrix::Mongodb.from_json(payload) }
8
+ it { should_not be_nil }
9
+
10
+ describe "#metrics" do
11
+ subject(:metrics) { status.metrics }
12
+ it { should be_kind_of(Hash) }
13
+
14
+ %w(ok mem.bits pid uptime uptimeMillis uptimeEstimate).each do |name|
15
+ it "should not have key #{name.inspect}" do
16
+ subject.should_not have_key(name)
17
+ end
18
+ end
19
+
20
+ {
21
+ "globalLock.totalTime"=>36018171,
22
+ "globalLock.lockTime"=>347,
23
+ "globalLock.ratio"=>9.634026114207743e-06,
24
+ "globalLock.currentQueue.total"=>0,
25
+ "globalLock.currentQueue.readers"=>0,
26
+ "globalLock.currentQueue.writers"=>0,
27
+ "globalLock.activeClients.total"=>0,
28
+ "globalLock.activeClients.readers"=>0,
29
+ "globalLock.activeClients.writers"=>0,
30
+ "mem.resident"=>14,
31
+ "mem.virtual"=>2414,
32
+ }.each do |k, v|
33
+ it "should set #{k} to #{v}" do
34
+ subject[k].should eq(v)
35
+ end
36
+ end
37
+ end
38
+ end
39
+
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ # tags: rspec default settings wip config
3
+
4
+ RSpec.configure do |c|
5
+ c.treat_symbols_as_metadata_keys_with_true_values = true
6
+ c.filter_run :focus => true
7
+ c.run_all_when_everything_filtered = true
8
+ end
9
+
10
+ require "pathname"
11
+ FIXTURES_PATH = Pathname.new(File.expand_path("../fixtures", __FILE__))
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: metrix
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Tobias Schwab
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-05-31 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: SyslogLogger
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: json
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: Ruby Metrics Library
79
+ email:
80
+ - tobias.schwab@dynport.de
81
+ executables:
82
+ - metrix
83
+ extensions: []
84
+ extra_rdoc_files: []
85
+ files:
86
+ - .gitignore
87
+ - Gemfile
88
+ - LICENSE.txt
89
+ - README.md
90
+ - Rakefile
91
+ - bin/metrix
92
+ - lib/metrix.rb
93
+ - lib/metrix/base.rb
94
+ - lib/metrix/elastic_search.rb
95
+ - lib/metrix/graphite.rb
96
+ - lib/metrix/mongodb.rb
97
+ - lib/metrix/version.rb
98
+ - metrix.gemspec
99
+ - spec/fixtures/es_status.json
100
+ - spec/fixtures/mongo_server_status.json
101
+ - spec/lib/metrix/elastic_search_spec.rb
102
+ - spec/lib/metrix/mongodb_spec.rb
103
+ - spec/spec_helper.rb
104
+ homepage: ''
105
+ licenses: []
106
+ post_install_message:
107
+ rdoc_options: []
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 1.8.23
125
+ signing_key:
126
+ specification_version: 3
127
+ summary: Ruby Metrics Library
128
+ test_files:
129
+ - spec/fixtures/es_status.json
130
+ - spec/fixtures/mongo_server_status.json
131
+ - spec/lib/metrix/elastic_search_spec.rb
132
+ - spec/lib/metrix/mongodb_spec.rb
133
+ - spec/spec_helper.rb