mongodb-graphite-agent 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ require 'mongodb/graphite/agent'
8
8
  opts = Trollop::options do
9
9
  opt :mongodb_username, "MongoDB username", :type => :string
10
10
  opt :mongodb_host, "MongoDB host", :type => :string, :default => "localhost"
11
- opt :mongodb_post, "MongoDB host", :type => :int, :default => 27017
11
+ opt :mongodb_post, "MongoDB port", :type => :int, :default => 27017
12
12
  opt :mongodb_password, "MongoDB password", :type => :string
13
13
  opt :graphite_host, "Graphite host", :type => :string
14
14
  opt :graphite_port, "Graphite port", :type => :string
@@ -30,13 +30,7 @@ module Mongodb
30
30
  k.match('^connection|^network\.|^cursors|^mem\.mapped|^indexCounters|^repl.oplog')
31
31
  }
32
32
 
33
- if (connection.is_replicaset?)
34
- puts "ReplicaSet detected" if @opts[:verbose]
35
- opcounters_per_second_metric_hash = calculate_opcounters_per_second server_status_result["opcountersRepl"]
36
- else
37
- puts "Single host mode detected" if @opts[:verbose]
38
- opcounters_per_second_metric_hash = calculate_opcounters_per_second server_status_result["opcounters"]
39
- end
33
+ opcounters_per_second_metric_hash = calculate_opcounters_per_second server_status_result["opcounters"]
40
34
 
41
35
  if @opts[:verbose]
42
36
  puts "Calculating metrics..."
@@ -1,7 +1,7 @@
1
1
  module Mongodb
2
2
  module Graphite
3
3
  module Agent
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongodb-graphite-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -191,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  segments:
193
193
  - 0
194
- hash: 4101892219957888543
194
+ hash: 2967853814840194051
195
195
  required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  none: false
197
197
  requirements:
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  version: '0'
201
201
  segments:
202
202
  - 0
203
- hash: 4101892219957888543
203
+ hash: 2967853814840194051
204
204
  requirements: []
205
205
  rubyforge_project:
206
206
  rubygems_version: 1.8.25