gitaly metrics not working when tls is used
prometheus_listen_addr
becomes a sub config of [tls]
which is wrong, see also https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitaly/templates/default/gitaly-config.toml.erb#L18
The generated config looks like this if gitaly['tls_listen_addr']
and gitaly['prometheus_listen_addr']
is defined.
# Optional: listen on a secure TCP socket
tls_listen_addr = '0.0.0.0:8075'
[tls]
certificate_path = '/etc/ssl/myhost.crt'
key_path = '/etc/ssl/myhost.key'
prometheus_listen_addr = 'localhost:9175'
instead of
prometheus_listen_addr = 'localhost:9175'
# Optional: listen on a secure TCP socket
tls_listen_addr = '0.0.0.0:8075'
[tls]
certificate_path = '/etc/ssl/myhost.crt'
key_path = '/etc/ssl/myhost.key'
Edited by Roger Meier