mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
Add monitoring keys
This commit is contained in:
parent
b9b56bf6be
commit
5c2e00e2ec
@ -573,15 +573,15 @@ production: &base
|
||||
# Built in monitoring settings
|
||||
monitoring:
|
||||
# Time between sampling of unicorn socket metrics, in seconds
|
||||
# unicorn_sampler_interval: 10
|
||||
unicorn_sampler_interval: {{GITLAB_MONITORING_UNICORN_SAMPLER_INTERVAL}}
|
||||
# IP whitelist to access monitoring endpoints
|
||||
ip_whitelist:
|
||||
- 127.0.0.0/8
|
||||
- {{GITLAB_MONITORING_IP_WHITELIST}}
|
||||
# Sidekiq exporter is webserver built in to Sidekiq to expose Prometheus metrics
|
||||
sidekiq_exporter:
|
||||
# enabled: true
|
||||
# address: localhost
|
||||
# port: 3807
|
||||
enabled: {{GITLAB_MONITORING_SIDEKIQ_EXPORTER_ENABLED}}
|
||||
address: {{GITLAB_MONITORING_SIDEKIQ_EXPORTER_ADDRESS}}
|
||||
port: {{GITLAB_MONITORING_SIDEKIQ_EXPORTER_PORT}}
|
||||
|
||||
#
|
||||
# 5. Extra customization
|
||||
|
||||
@ -383,3 +383,10 @@ GITALY_ENABLED=${GITALY_ENABLED:-true}
|
||||
GITALY_TOKEN=${GITALY_TOKEN:-}
|
||||
GITALY_SOCKET_PATH=${GITLAB_INSTALL_DIR}/tmp/sockets/private/gitaly.socket
|
||||
GITALY_ADDRESS=${GITALY_ADDRESS:-unix:$GITALY_SOCKET_PATH}
|
||||
|
||||
## MONITORING
|
||||
GITLAB_MONITORING_UNICORN_SAMPLER_INTERVAL=${GITLAB_MONITORING_UNICORN_SAMPLER_INTERVAL:-10}
|
||||
GITLAB_MONITORING_IP_WHITELIST=${GITLAB_MONITORING_IP_WHITELIST:-"0.0.0.0/8"}
|
||||
GITLAB_MONITORING_SIDEKIQ_EXPORTER_ENABLED=${GITLAB_MONITORING_SIDEKIQ_EXPORTER_ENABLED:-true}
|
||||
GITLAB_MONITORING_SIDEKIQ_EXPORTER_ADDRESS=${GITLAB_MONITORING_SIDEKIQ_EXPORTER_ADDRESS:-"0.0.0.0"}
|
||||
GITLAB_MONITORING_SIDEKIQ_EXPORTER_PORT=${GITLAB_MONITORING_SIDEKIQ_EXPORTER_PORT:-3807}
|
||||
|
||||
@ -287,6 +287,18 @@ gitlab_configure_gitaly() {
|
||||
|
||||
}
|
||||
|
||||
gitlab_configure_monitoring() {
|
||||
echo "Configuring gitlab::monitoring..."
|
||||
|
||||
update_template ${GITLAB_CONFIG} \
|
||||
GITLAB_MONITORING_UNICORN_SAMPLER_INTERVAL \
|
||||
GITLAB_MONITORING_IP_WHITELIST \
|
||||
GITLAB_MONITORING_SIDEKIQ_EXPORTER_ENABLED \
|
||||
GITLAB_MONITORING_SIDEKIQ_EXPORTER_ADDRESS \
|
||||
GITLAB_MONITORING_SIDEKIQ_EXPORTER_PORT
|
||||
|
||||
}
|
||||
|
||||
gitlab_configure_gitlab_workhorse() {
|
||||
echo "Configuring gitlab::gitlab-workhorse..."
|
||||
update_template /etc/supervisor/conf.d/gitlab-workhorse.conf \
|
||||
@ -1434,6 +1446,7 @@ configure_gitlab() {
|
||||
gitlab_configure_secrets
|
||||
gitlab_configure_sidekiq
|
||||
gitlab_configure_gitaly
|
||||
gitlab_configure_monitoring
|
||||
gitlab_configure_gitlab_workhorse
|
||||
gitlab_configure_relative_url
|
||||
gitlab_configure_trusted_proxies
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user