bin/metric-postgres-connections.rb in sensu-plugins-postgres-1.0.1 vs bin/metric-postgres-connections.rb in sensu-plugins-postgres-1.1.0
- old
+ new
@@ -77,9 +77,10 @@
con = PG.connect(host: config[:hostname],
dbname: config[:database],
user: config[:user],
password: config[:password],
+ port: config[:port],
connect_timeout: config[:timeout])
request = [
"select case when count(*) = 1 then 'waiting' else",
"'case when wait_event_type is null then false else true end' end as wait_col",
'from information_schema.columns',