Page 1 of 1

GitLab Grafana service force disabled

Posted: 2024 Dec 04, 12:25
by Mihai
  • For installed gitlab omnibus
Edit file default.rb from the gitlab installation path ( example: /opt/gitlab/...... ):

Code: Select all

vim /opt/gitlab/embedded/cookbooks/monitoring/recipes/default.rb
Add the following code in the file:

Code: Select all

# Disable Grafana service.
runit_service 'grafana' do
  action :disable
end
Save file content and exit.
Execute gitlab stop all services:

Code: Select all

gitlab-ctl stop
Execute gitlab reconfigure:

Code: Select all

gitlab-ctl reconfigure
Execute gitlab start all services:

Code: Select all

gitlab-ctl start
Check if grafana service is running:

Code: Select all

gitlab-ctl status