bin/metric-postgres-graphite.rb in sensu-plugins-postgres-1.0.1 vs bin/metric-postgres-graphite.rb in sensu-plugins-postgres-1.1.0

- old
+ new

@@ -51,11 +51,11 @@ option :user, short: '-u', long: '--username=VALUE', description: 'Database username' - option :pass, + option :password, short: '-p', long: '--password=VALUE', description: 'Database password' option :scheme, @@ -80,9 +80,10 @@ # Establishing connections to the master conn_master = PG.connect(host: config[:master_host], dbname: config[:database], user: config[:user], password: config[:password], + port: config[:port], connect_timeout: config[:timeout]) res1 = conn_master.exec('SELECT pg_current_xlog_location()').getvalue(0, 0) m_segbytes = conn_master.exec('SHOW wal_segment_size').getvalue(0, 0).sub(/\D+/, '').to_i << 20 conn_master.close