diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/metrics-server | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/metrics-server b/bin/metrics-server index d8f2ed9faa4..f8eca93908e 100755 --- a/bin/metrics-server +++ b/bin/metrics-server @@ -9,4 +9,5 @@ raise "METRICS_SERVER_TARGET cannot be blank" if target.blank? metrics_dir = ENV["prometheus_multiproc_dir"] || File.absolute_path("tmp/prometheus_multiproc_dir/#{target}") wipe_metrics_dir = Gitlab::Utils.to_boolean(ENV['WIPE_METRICS_DIR']) || false -Process.wait(MetricsServer.spawn(target, metrics_dir: metrics_dir, wipe_metrics_dir: wipe_metrics_dir)) +server = MetricsServer.new(target, metrics_dir, wipe_metrics_dir) +server.start |