We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a3346b commit afd9aadCopy full SHA for afd9aad
bin/metric-postgres-graphite.rb
@@ -37,11 +37,17 @@ class CheckpostgresReplicationStatus < Sensu::Plugin::Metric::CLI::Graphite
37
short: '-g SCHEME',
38
long: '--scheme SCHEME',
39
default: "#{Socket.gethostname}.postgres.replication_lag"
40
+
41
+ option :port,
42
+ description: 'Database port',
43
+ short: '-P PORT',
44
+ long: '--port PORT',
45
+ default: 5432
46
47
def run
48
@dbmaster = config[:master_host]
49
@dbslave = config[:slave_host]
- @dbport = 5432
50
+ @dbport = config[:port]
51
@dbname = config[:database]
52
@dbusername = config[:user]
53
@password = config[:pass]
0 commit comments