bin/mongodb-graphite-agent.rb in mongodb-graphite-agent-0.0.9 vs bin/mongodb-graphite-agent.rb in mongodb-graphite-agent-0.1.0
- old
+ new
@@ -2,17 +2,15 @@
$:.unshift File.expand_path("#{File.dirname(__FILE__)}/../lib")
require 'trollop'
require 'mongodb/graphite/agent'
-require 'mongodb/graphite/agent/graphite_writer'
opts = Trollop::options do
opt :mongodb_username, "MongoDB username", :type => :string
opt :mongodb_host, "MongoDB host", :type => :string, :default => "localhost"
opt :mongodb_post, "MongoDB host", :type => :int, :default => 27017
opt :mongodb_password, "MongoDB password", :type => :string
- opt :mongodb_replicaset, "Set this flag if the host is part of a MongoDB replicaSet", :type => :boolean, :default => false
opt :graphite_host, "Graphite host", :type => :string
opt :graphite_port, "Graphite port", :type => :string
opt :graphite_metrics_prefix, "Graphite metrics prefix", :type => :string, :default => Socket.gethostname
opt :dry_run, "Dry run", :type => :boolean, :default => false
opt :verbose, "Verbose", :type => :boolean, :default => false
\ No newline at end of file