* disable influx
This commit is contained in:
parent
9e4105a391
commit
90c167fb91
|
|
@ -62,8 +62,10 @@ module JamRuby
|
|||
influxdb_port = options[:influxdb_port]
|
||||
influxdb_async = options[:influxdb_async].nil? ? true : options[:influxdb_async]
|
||||
|
||||
# WHEN WE TRY TO BRING INFLUX BACK, TAKE THIS OUT
|
||||
influx_db_right_now = false
|
||||
|
||||
if influxdb_database && influxdb_database.length > 0
|
||||
if influx_db_right_now && influxdb_database && influxdb_database.length > 0
|
||||
@client = InfluxDB::Client.new influxdb_database,
|
||||
username: influxdb_username,
|
||||
password: influxdb_password,
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ Resque.before_first_fork do
|
|||
end
|
||||
|
||||
JamRuby::Stats.init(config)
|
||||
|
||||
end
|
||||
# https://devcenter.heroku.com/articles/forked-pg-connections
|
||||
Resque.before_fork do
|
||||
|
|
|
|||
|
|
@ -348,7 +348,8 @@ if defined?(Bundler)
|
|||
config.influxdb_unsafe_password = "root" # these are exposed to JavaScript
|
||||
config.influxdb_hosts = ["localhost"]
|
||||
config.influxdb_port = 8086
|
||||
config.influxdb_ignored_environments = ENV["INFLUXDB_ENABLED"] == '1' ? ['test', 'cucumber'] : ['test', 'cucumber', 'development']
|
||||
#config.influxdb_ignored_environments = ENV["INFLUXDB_ENABLED"] == '1' ? ['test', 'cucumber'] : ['test', 'cucumber', 'development']
|
||||
config.influxdb_ignored_environments = ['test', 'cucumber', 'development', 'production']
|
||||
|
||||
config.allow_spikes = false
|
||||
config.show_jamblaster_kickstarter_link = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue