Print
카테고리: [ Miscellaneous ]
조회수: 12584

구성 환경

CentOS 7.5


설치 과정

1. SELinux 해제

SELinux 설정 여부를 확인하고 Disable 한다.

getenforce

vim /etc/sysconfig/selinux
SELinux=disabled

reboot

 

2. YUM Repository를 활용한 Grafana 설치

repo 파일 생성

cat << EOF > /etc/yum/repos.d/grafana.repo
[grafana] \
name=grafana \
baseurl=https://packages.grafana.com/oss/rpm \
repo_gpgcheck=1 \
enabled=1 \
gpgcheck=1 \
gpgkey=https://packages.grafana.com/gpg.key \
sslverify=1 \
sslcacert=/etc/pki/tls/certs/ca-bundle.crt \
EOF

Grafana 설치

yum install -y grafana

기타 폰트 패키지 설치

yum install -y fontconfig freetype* urw-fonts

 

3. Grafana 서비스 실행

grafana-server의 상태 확인

systemctl status grafana-server

grafana-server 실행 및 서비스 추가

systemctl start grafana-server
systemctl enable grafana-server.service

 

4. Firewall 설정

firewalld 설치 및 실행

yum install -y firewalld
systemctl start firewalld

grafana용 포트 firewall에 추가

firewall-cmd --zone=public --add-port=3000/tcp --permanent
firewalld --reload

 

5. Data Source 생성 - Prometheus와 연동