Verity's Daily Logs_

[Gitlab]작성중 - 프로메테우스 비활성화 본문

GIT & Jenkins

[Gitlab]작성중 - 프로메테우스 비활성화

johye0 2021. 1. 13. 08:55
반응형

프로메테우스 쓰지도 않는데 차지하는 용량이 갈수록 늘어간다.

 

비활성화 방법

docs.gitlab.com/ee/administration/monitoring/prometheus/

 

Monitoring GitLab with Prometheus | GitLab

Monitoring GitLab with Prometheus Notes: Prometheus and the various exporters listed in this page are bundled in the Omnibus GitLab package. Check each exporter’s documentation for the timeline they got added. For installations from source you must insta

docs.gitlab.com

linux.systemv.pe.kr/gitlab-%EC%84%A4%EC%B9%98%EC%99%80-%EC%84%A4%EC%A0%95/

 

GitLab 설치와 설정 | Voyager of Linux

GitLab 설치 하기. GitLab 은 무료로 사용가능한 git 저장소, ticket 시스템이다. github 의 오픈소스 버전으로 생각할 수 있지만 그것보다 많은 기능을 제공한다. 이 글에서는 gitlab 을 Ubuntu 20.04 LTS 에 설

linux.systemv.pe.kr

0. 실행중인 깃랩 프로세스 확인

[root@GitJenkins wal]# gitlab-ctl status
run: alertmanager: (pid 113336) 10796244s; run: log: (pid 141725) 23061657s
run: gitaly: (pid 113368) 10796243s; run: log: (pid 141731) 23061657s
run: gitlab-exporter: (pid 113400) 10796242s; run: log: (pid 141737) 23061657s
run: gitlab-workhorse: (pid 113424) 10796242s; run: log: (pid 141751) 23061657s
run: grafana: (pid 113443) 10796242s; run: log: (pid 141733) 23061657s
run: logrotate: (pid 15904) 3323s; run: log: (pid 141735) 23061657s
run: nginx: (pid 113479) 10796241s; run: log: (pid 141740) 23061657s
run: node-exporter: (pid 113576) 10796240s; run: log: (pid 141748) 23061657s
run: postgres-exporter: (pid 113583) 10796240s; run: log: (pid 141728) 23061657s
run: postgresql: (pid 113595) 10796239s; run: log: (pid 141729) 23061657s
run: prometheus: (pid 113604) 10796239s; run: log: (pid 141745) 23061657s
run: redis: (pid 113633) 10796239s; run: log: (pid 141738) 23061657s
run: redis-exporter: (pid 113637) 10796238s; run: log: (pid 141736) 23061657s
run: sidekiq: (pid 21142) 1738s; run: log: (pid 141724) 23061657s
run: unicorn: (pid 21526) 1685s; run: log: (pid 141743) 23061657s

 

 

1. 설정 값 변경

# vi /etc/gitlab/gitlab.rb

prometheus_monitoring['enable'] = false

 

 

2. 깃랩 재시작 및 설정 적용

# sudo gitlab-ctl reconfigure

 

 

 

기존에 저장되어 있던 프로메테우스 데이터 파일들을 삭제처리 한다.

# cd /var /var/opt/gitlab/prometheus/data/wal

[root@GitJenkins wal]# find . -type f -name "*0051*" -exec rm {} \;
[root@GitJenkins wal]# find . -type f -name "*0052*" -exec rm {} \;
[root@GitJenkins wal]# find . -type f -name "*0053*" -exec rm {} \;
[root@GitJenkins wal]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G   12K   16G   1% /dev/shm
tmpfs            16G  460M   15G   3% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/sda4       197G  148G   40G  80% /
/dev/sda2       976M  143M  766M  16% /boot
/dev/sda3       640G  493G  115G  82% /home
/dev/sda1      1022M   12M 1011M   2% /boot/efi
tmpfs           3.1G  4.0K  3.1G   1% /run/user/42
tmpfs           3.1G   48K  3.1G   1% /run/user/1000
tmpfs           3.1G   40K  3.1G   1% /run/user/0

반응형
Comments