summaryrefslogtreecommitdiff
path: root/config.ru
diff options
context:
space:
mode:
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru5
1 files changed, 2 insertions, 3 deletions
diff --git a/config.ru b/config.ru
index cba44122da9..9e474a7c08c 100644
--- a/config.ru
+++ b/config.ru
@@ -13,10 +13,9 @@ if defined?(Unicorn)
# Max memory size (RSS) per worker
use Unicorn::WorkerKiller::Oom, min, max
end
-
- # TODO(lyda): Needs to be set externally.
- ENV['prometheus_multiproc_dir'] = '/tmp/somestuff'
end
+# set default for multiproces metrics gathering
+ENV['prometheus_multiproc_dir'] ||= 'tmp/prometheus_data_dir'
require ::File.expand_path('../config/environment', __FILE__)