Add prometheusListenAddr config setting for gitlab-workhorse

This commit is contained in:
Balasankar C 2016-12-01 15:33:11 +05:30
parent ec4104dacb
commit 12bb9df21c
No known key found for this signature in database
GPG Key ID: 96EDAB9B2E6B7171
3 changed files with 5 additions and 0 deletions

View File

@ -398,6 +398,7 @@ external_url 'GENERATED_EXTERNAL_URL'
# gitlab_workhorse['auth_backend'] = "http://localhost:8080"
# gitlab_workhorse['auth_socket'] = "''" # the empty string is the default in gitlab-workhorse option parser
# gitlab_workhorse['pprof_listen_addr'] = "''" # put an empty string on the command line
# gitlab_workhorse['prometheus_listen_addr'] = "''" # default is empty string
# gitlab_workhorse['dir'] = "/var/opt/gitlab/gitlab-workhorse"
# gitlab_workhorse['log_directory'] = "/var/log/gitlab/gitlab-workhorse"
# gitlab_workhorse['proxy_headers_timeout'] = "1m0s"

View File

@ -460,6 +460,7 @@ default['gitlab']['gitlab-workhorse']['listen_addr'] = "/var/opt/gitlab/gitlab-w
default['gitlab']['gitlab-workhorse']['auth_backend'] = "http://localhost:8080"
default['gitlab']['gitlab-workhorse']['auth_socket'] = "''" # the empty string is the default in gitlab-workhorse option parser
default['gitlab']['gitlab-workhorse']['pprof_listen_addr'] = "''" # put an empty string on the command line
default['gitlab']['gitlab-workhorse']['prometheus_listen_addr'] = nil # default value is nil
default['gitlab']['gitlab-workhorse']['dir'] = "/var/opt/gitlab/gitlab-workhorse"
default['gitlab']['gitlab-workhorse']['log_directory'] = "/var/log/gitlab/gitlab-workhorse"
default['gitlab']['gitlab-workhorse']['proxy_headers_timeout'] = nil

View File

@ -31,6 +31,9 @@ exec chpst -e /opt/gitlab/etc/gitlab-workhorse/env -P \
<% if node['gitlab']['gitlab-workhorse']['api_queue_limit'] %>
-apiQueueLimit <%= node['gitlab']['gitlab-workhorse']['api_queue_limit'] %> \
<% end %>
<% if node['gitlab']['gitlab-workhorse']['prometheus_listen_addr'] %>
-prometheusListenAddr <%= node['gitlab']['gitlab-workhorse']['prometheus_listen_addr'] %> \
<% end %>
-secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret \
# Do not remove this line; it prevents trouble with the trailing backslashes above.