InfluxDB::Rails.configure do |config|
  config.influxdb_database        = Rails.application.config.influxdb_database
  config.influxdb_username        = Rails.application.config.influxdb_username
  config.influxdb_password        = Rails.application.config.influxdb_password
  config.influxdb_hosts           = Rails.application.config.influxdb_hosts
  config.influxdb_port            = Rails.application.config.influxdb_port
  config.ignored_environments     = Rails.application.config.influxdb_ignored_environments
  config.async = true
  config.debug = false
  config.logger = Logging.logger['InfluxDB']

  config.series_name_for_controller_runtimes = "web.rails.controller"
  config.series_name_for_view_runtimes       = "web.rails.view"
  config.series_name_for_db_runtimes         = "web.rails.db"
end
