lib/mongodb/graphite/agent.rb in mongodb-graphite-agent-0.1.0 vs lib/mongodb/graphite/agent.rb in mongodb-graphite-agent-0.1.1

- old
+ new

@@ -28,16 +28,10 @@ server_status_result = connection["local"].command('serverStatus' => 1) metric_hash = Utils.to_hash(server_status_result).select { |k| k.match('^connection|^network\.|^cursors|^mem\.mapped|^indexCounters|^repl.oplog') } - if (connection.is_replicaset?) - puts "ReplicaSet detected" if @opts[:verbose] - opcounters_per_second_metric_hash = calculate_opcounters_per_second server_status_result["opcountersRepl"] - else - puts "Single host mode detected" if @opts[:verbose] - opcounters_per_second_metric_hash = calculate_opcounters_per_second server_status_result["opcounters"] - end + opcounters_per_second_metric_hash = calculate_opcounters_per_second server_status_result["opcounters"] if @opts[:verbose] puts "Calculating metrics..." ap metric_hash ap opcounters_per_second_metric_hash \ No newline at end of file