Merge branch 'bjk/pg_exporter_DSN' into 'master'

Update postgres_exporter env

Closes #2122

See merge request !1431
This commit is contained in:
Marin Jankovski 2017-04-03 14:21:57 +00:00
commit c8633b8b3c
1 changed files with 1 additions and 1 deletions

View File

@ -930,7 +930,7 @@ default['gitlab']['postgres-exporter']['enable'] = true
default['gitlab']['postgres-exporter']['log_directory'] = "/var/log/gitlab/postgres-exporter"
default['gitlab']['postgres-exporter']['listen_address'] = 'localhost:9187'
default['gitlab']['postgres-exporter']['env'] = {
'DATA_SOURCE_NAME' => "user=#{node['gitlab']['postgresql']['username']} host=#{node['gitlab']['gitlab-rails']['db_host']} database=template1"
'DATA_SOURCE_NAME' => "user=#{node['gitlab']['postgresql']['username']} host=#{node['gitlab']['gitlab-rails']['db_host']} database=postgres sslmode=allow"
}
####