Skip to content
Snippets Groups Projects
Commit e7b0bcf3 authored by Joshua Lambert's avatar Joshua Lambert Committed by Mark Pundsack
Browse files

Clean up prometheus default flags, enable Prometheus integration by default.

parent c70700f2
No related branches found
No related tags found
1 merge request!30Updates for 9.0
......@@ -129,23 +129,18 @@ spec:
gitlab_rails['registry_path'] = '/gitlab-registry'
gitlab_rails['trusted_proxies'] = ["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16"]
prometheus['enable'] = true
prometheus['listen_address'] = '0.0.0.0:9090'
prometheus['monitor_kubernetes'] = true
node_exporter['enable'] = true
gitlab_monitor['enable'] = true
postgres_exporter['enable'] = true
postgres_exporter['env'] = {
'DATA_SOURCE_NAME' => "user=#{ENV['POSTGRES_USER']} host=gitlab-postgresql port=5432 dbname=#{ENV['POSTGRES_DB']} password=#{ENV['POSTGRES_PASSWORD']} sslmode=disable"
}
redis_exporter['enable'] = true
redis_exporter['flags'] = {
'redis.addr' => "gitlab-redis:6379",
}
- name: GITLAB_POST_RECONFIGURE_SCRIPT
value: |
/opt/gitlab/bin/gitlab-rails runner -e production 'Doorkeeper::Application.where(uid: ENV["MATTERMOST_APP_UID"], secret: ENV["MATTERMOST_APP_SECRET"], redirect_uri: "#{ENV["GITLAB_MATTERMOST_EXTERNAL_SCHEME"]}://#{ENV["GITLAB_MATTERMOST_EXTERNAL_HOSTNAME"]}/signup/gitlab/complete\r\n#{ENV["GITLAB_MATTERMOST_EXTERNAL_SCHEME"]}://#{ENV["GITLAB_MATTERMOST_EXTERNAL_HOSTNAME"]}/login/gitlab/complete", name: "GitLab Mattermost").first_or_create;'
/opt/gitlab/bin/gitlab-rails runner -e production 'Doorkeeper::Application.where(uid: ENV["MATTERMOST_APP_UID"], secret: ENV["MATTERMOST_APP_SECRET"], redirect_uri: "#{ENV["GITLAB_MATTERMOST_EXTERNAL_SCHEME"]}://#{ENV["GITLAB_MATTERMOST_EXTERNAL_HOSTNAME"]}/signup/gitlab/complete\r\n#{ENV["GITLAB_MATTERMOST_EXTERNAL_SCHEME"]}://#{ENV["GITLAB_MATTERMOST_EXTERNAL_HOSTNAME"]}/login/gitlab/complete", name: "GitLab Mattermost").first_or_create;' && /opt/gitlab/bin/gitlab-rails runner -e production 'PrometheusService.where(template: true).first_or_create.update(active: true, properties: {"api_url"=>"http://localhost:9090"})'
ports:
- name: registry
containerPort: 8105
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment