Skip to content

Commit

Permalink
Merge pull request #6570 from ChrisBr/fix_influx_init
Browse files Browse the repository at this point in the history
Fix influx initialization
  • Loading branch information
ChrisBr committed Dec 11, 2018
2 parents 8ffe06c + 0c24595 commit a73a499
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api/config/initializers/influxdb_rails.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
return if CONFIG['influxdb_hosts'].blank? # defaults to localhost otherwise

InfluxDB::Rails.configure do |config|
config.influxdb_database = CONFIG['influxdb_database']
config.influxdb_username = CONFIG['influxdb_username']
config.influxdb_password = CONFIG['influxdb_password']
config.influxdb_hosts = CONFIG['influxdb_hosts'] || [] # default is otherwise localhost
config.influxdb_hosts = CONFIG['influxdb_hosts']
config.influxdb_port = CONFIG['influxdb_port']
config.retry = CONFIG['influxdb_retry']
config.retry = CONFIG['influxdb_retry'] || false # default is infinite otherwise
config.use_ssl = CONFIG['influxdb_ssl']
config.time_precision = CONFIG['influxdb_time_precision']
config.series_name_for_sql = 'rails.sql'
Expand Down

0 comments on commit a73a499

Please sign in to comment.