bin/check-influxdb-query.rb in sensu-plugins-influxdb-1.0.0 vs bin/check-influxdb-query.rb in sensu-plugins-influxdb-1.1.0

- old
+ new

@@ -77,10 +77,17 @@ short: '-d DATABASE', long: '--database DATABASE', default: 'influxdb', description: 'InfluxDB database name' + option :retry, + short: '-r RETRY', + long: '--retry RETRY', + description: 'InfluxDB retry count with exponential back-off', + proc: proc(&:to_i), + default: 12 + option :username, short: '-u USERNAME', long: '--username USERNAME', default: 'root', description: 'API username' @@ -150,9 +157,10 @@ host: config[:host], port: config[:port], use_ssl: config[:use_ssl], verify_ssl: config[:verify_ssl], ssl_ca_cert: config[:ssl_ca_cert], + retry: config[:retry], username: config[:username], password: config[:password] value = influxdb.query config[:query]