Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- ## Prometheus
- ##! Docs: https://docs.gitlab.com/ce/administration/monitoring/prometheus/
- ################################################################################
- # prometheus['enable'] = true
- # prometheus['monitor_kubernetes'] = true
- # prometheus['username'] = 'gitlab-prometheus'
- # prometheus['uid'] = nil
- # prometheus['gid'] = nil
- # prometheus['shell'] = '/bin/sh'
- # prometheus['home'] = '/var/opt/gitlab/prometheus'
- # prometheus['log_directory'] = '/var/log/gitlab/prometheus'
- # prometheus['rules_files'] = ['/var/opt/gitlab/prometheus/rules/*.rules']
- # prometheus['scrape_interval'] = 15
- # prometheus['scrape_timeout'] = 15
- # prometheus['chunk_encoding_version'] = 2
- #
- ### Custom scrape configs
- #
- # Prometheus can scrape additional jobs via scrape_configs. The default automatically
- # includes all of the exporters supported by the omnibus config.
- #
- # See: https://prometheus.io/docs/operating/configuration/#<scrape_config>
- #
- # Example:
- #
- # prometheus['scrape_configs'] = [
- # {
- # 'job_name': 'example',
- # 'static_configs' => [
- # 'targets' => ['hostname:port'],
- # ],
- # },
- # ]
- #
- ### Prometheus Memory Management
- #
- # Prometheus needs to be configured for how much memory is used.
- # * This sets the target heap size.
- # * This value accounts for approximately 2/3 of the memory used by the server.
- # * The recommended memory is 4kb per unique metrics time-series.
- # See: https://prometheus.io/docs/operating/storage/#memory-usage
- #
- # prometheus['target_heap_size'] = (
- # # Use 25mb + 2% of total memory for Prometheus memory.
- # 26_214_400 + (node['memory']['total'].to_i * 1024 * 0.02 )
- # ).to_i
- #
- # prometheus['flags'] = {
- # 'storage.local.path' => "#{node['gitlab']['prometheus']['home']}/data",
- # 'storage.local.chunk-encoding-version' => user_config['chunk-encoding-version'],
- # 'storage.local.target-heap-size' => node['gitlab']['prometheus']['target-heap-size'],
- # 'config.file' => "#{node['gitlab']['prometheus']['home']}/prometheus.yml"
- # }
- ##! Advanced settings. Should be changed only if absolutely needed.
- # prometheus['listen_address'] = 'localhost:9090'
- ################################################################################
- ## GitLab Workhorse
- ##! Docs: https://gitlab.com/gitlab-org/gitlab-workhorse/blob/master/README.md
- ################################################################################
- # gitlab_workhorse['enable'] = true
- # gitlab_workhorse['ha'] = false
- # gitlab_workhorse['listen_network'] = "unix"
- # gitlab_workhorse['listen_umask'] = 000
- # gitlab_workhorse['listen_addr'] = "/var/opt/gitlab/gitlab-workhorse/socket"
- # gitlab_workhorse['auth_backend'] = "http://localhost:8080"
- ##! the empty string is the default in gitlab-workhorse option parser
- # gitlab_workhorse['auth_socket'] = "''"
- ##! put an empty string on the command line
- # gitlab_workhorse['pprof_listen_addr'] = "''"
- # gitlab_workhorse['prometheus_listen_addr'] = "localhost:9229"
- # gitlab_workhorse['dir'] = "/var/opt/gitlab/gitlab-workhorse"
- # gitlab_workhorse['log_directory'] = "/var/log/gitlab/gitlab-workhorse"
- # gitlab_workhorse['proxy_headers_timeout'] = "1m0s"
- ##! limit number of concurrent API requests, defaults to 0 which is unlimited
- # gitlab_workhorse['api_limit'] = 0
- ##! limit number of API requests allowed to be queued, defaults to 0 which
- ##! disables queuing
- # gitlab_workhorse['api_queue_limit'] = 0
- ##! duration after which we timeout requests if they sit too long in the queue
- # gitlab_workhorse['api_queue_duration'] = "30s"
- ##! Long polling duration for job requesting for runners
- # gitlab_workhorse['api_ci_long_polling_duration'] = "60s"
- ##! Log format: default is text, can also be json or none.
- # gitlab_workhorse['log_format'] = "json"
- # gitlab_workhorse['env'] = {
- # 'PATH' => "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/bin:/usr/bin"
- # }
- ################################################################################
- ## GitLab Unicorn
- ##! Tweak unicorn settings.
- ##! Docs: https://docs.gitlab.com/omnibus/settings/unicorn.html
- ################################################################################
- # unicorn['worker_timeout'] = 60
- ###! Minimum worker_processes is 2 at this moment
- ###! See https://gitlab.com/gitlab-org/gitlab-ce/issues/18771
- # unicorn['worker_processes'] = 2
- ### Advanced settings
- # unicorn['listen'] = 'localhost'
- # unicorn['port'] = 8080
- # unicorn['socket'] = '/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket'
- # unicorn['pidfile'] = '/opt/gitlab/var/unicorn/unicorn.pid'
- # unicorn['tcp_nopush'] = true
- # unicorn['backlog_socket'] = 1024
- ###! **Make sure somaxconn is equal or higher then backlog_socket**
- # unicorn['somaxconn'] = 1024
- ###! **We do not recommend changing this setting**
- # unicorn['log_directory'] = "/var/log/gitlab/unicorn"
- ### **Only change these settings if you understand well what they mean**
- ###! Docs: https://about.gitlab.com/2015/06/05/how-gitlab-uses-unicorn-and-unicorn-worker-killer/
- ###! https://github.com/kzk/unicorn-worker-killer
- # unicorn['worker_memory_limit_min'] = "400 * 1 << 20"
- # unicorn['worker_memory_limit_max'] = "650 * 1 << 20"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement