Sha256: 67ec6e92c8768999140eb2d0a4bca6574b1c55e8c765e82bc53d2f5c2900246f

Contents?: true

Size: 1.69 KB

Versions: 4

Compression:

Stored size: 1.69 KB

Contents

InfluxDB::Rails.configure do |config|
  ## The only setting you actually need to update is the name of the
  ## database within the InfluxDB server instance. Don't forget to
  ## create this database as well.
  config.client.database = "rails"
  # config.client.hosts = ["localhost"]
  # config.client.port = 8086

  ## If you've setup user authentication (and activated it in the server
  ## config), you need to configure the credentials here.
  # config.client.username = "root"
  # config.client.password = "root"

  ## Various other client and connection options. These are used to create
  ## an `InfluxDB::Client` instance (i.e. `InfluxDB::Rails.client`).
  ##
  ## See docs for the influxdb gem for the canonical list of options:
  ## https://github.com/influxdata/influxdb-ruby#list-of-configuration-options
  ##
  ## These defaults for the influxdb-rails gem deviate from the default
  ## for the influxdb gem:
  # config.client.async = true # false
  # config.client.read_timeout = 30 # 300
  # config.client.max_delay = 300 # 30
  # config.client.time_precision = "ms" # "s"

  ## Prior to 1.0.0, this gem has written all data points in different
  ## measurements (the config options were named `series_name_for_*`).
  ## Since 1.0.0.beta3, we're now using a single measurements
  # config.measurement_name = "rails"

  ## Disable rails framework hooks.
  # config.ignored_hooks = ['sql.active_record', 'render_template.action_view']

  # Modify tags on the fly.
  # config.tags_middleware = ->(tags) { tags }

  ## Set the application name to something meaningful, by default we
  ## infer the app name from the Rails.application class name.
  # config.application_name = Rails.application.class.parent_name
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
influxdb-rails-1.0.1.beta2 lib/rails/generators/influxdb/templates/initializer.rb
influxdb-rails-1.0.1.beta1 lib/rails/generators/influxdb/templates/initializer.rb
influxdb-rails-1.0.0 lib/rails/generators/influxdb/templates/initializer.rb
influxdb-rails-1.0.0.beta4 lib/rails/generators/influxdb/templates/initializer.rb