Skip to content

Commit

Permalink
Make influxdb-rails time precision configurable
Browse files Browse the repository at this point in the history
Because the default is second time precision but we see several requests per second
which means we're losing data. It is now possible to set the time precision in
the options.
  • Loading branch information
ChrisBr committed Dec 10, 2018
1 parent f78d9db commit 5078d28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/config/initializers/influxdb_rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
config.influxdb_port = CONFIG['influxdb_port']
config.retry = CONFIG['influxdb_retry']
config.use_ssl = CONFIG['influxdb_ssl']

config.time_precision = CONFIG['influxdb_time_precision']
end
1 change: 1 addition & 0 deletions src/api/config/options.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ default: &default
# influxdb_port: 8086
# influxdb_ssl: true
# influxdb_retry: 10
# influxdb_time_precision: ms

# Enable (true) / Disable (false) Ruby on Rails profiling top-bar in the web ui
peek_enabled: false
Expand Down

0 comments on commit 5078d28

Please sign in to comment.