728x90
반응형
Grafana 란?
Grafana는 오픈 소스 데이터 시각화 및 모니터링 도구입니다. 주로 다양한 데이터 소스로부터 수집된 데이터를 시각적으로 표현하고 모니터링하는 데 하는 하는 툴입니다. Grafana를 설치 한후 대시보드를 만들어 다양한 형식의 차트, 그래프, 지표 등을 통해 데이터를 시각화할 수 있습니다.
Grafana 설치
Grafana 다운로드
아래경로에서 바이너리를 다운로드 받습니다.
https://grafana.com/grafana/download
Grafana 설치
설치및 테스트 환경은 Centos 7.9 입니다.
sudo yum install -y https://dl.grafana.com/enterprise/release/grafana-enterprise-10.4.2-1.x86_64.rpm
[root@mysvr ~]# sudo yum install -y https://dl.grafana.com/enterprise/release/grafana-enterprise-10.4.2-1.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
grafana-enterprise-10.4.2-1.x86_64.rpm 22% [======== ] 268 kB/s | 26 MB 00:05:34 ETA
grafana-enterprise-10.4.2-1.x86_64.rpm | 114 MB 00:06:42
Examining /var/tmp/yum-root-3zwBGu/grafana-enterprise-10.4.2-1.x86_64.rpm: grafana-enterprise-10.4.2-1.x86_64
Marking /var/tmp/yum-root-3zwBGu/grafana-enterprise-10.4.2-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package grafana-enterprise.x86_64 0:10.4.2-1 will be installed
--> Finished Dependency Resolution
base/7/x86_64 | 3.6 kB 00:00:00
centos-sclo-rh/x86_64 | 3.0 kB 00:00:00
centos-sclo-sclo/x86_64 | 3.0 kB 00:00:00
docker-ce-stable/7/x86_64 | 3.5 kB 00:00:00
docker-ce-stable/7/x86_64/primary_db | 147 kB 00:00:00
extras/7/x86_64 | 2.9 kB 00:00:00
Dependencies Resolved
=========================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================
Installing:
grafana-enterprise x86_64 10.4.2-1 /grafana-enterprise-10.4.2-1.x86_64 420 M
Transaction Summary
=========================================================================================================================
Install 1 Package
Total size: 420 M
Installed size: 420 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : grafana-enterprise-10.4.2-1.x86_64 1/1
### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable grafana-server.service
### You can start grafana-server by executing
sudo /bin/systemctl start grafana-server.service
POSTTRANS: Running script
Verifying : grafana-enterprise-10.4.2-1.x86_64 1/1
Installed:
grafana-enterprise.x86_64 0:10.4.2-1
Complete!
Loaded plugins: fastestmirror, langpacks
grafana-enterprise-10.4.2-1.x86_64.rpm 22% [======== ] 268 kB/s | 26 MB 00:05:34 ETA
grafana-enterprise-10.4.2-1.x86_64.rpm | 114 MB 00:06:42
Examining /var/tmp/yum-root-3zwBGu/grafana-enterprise-10.4.2-1.x86_64.rpm: grafana-enterprise-10.4.2-1.x86_64
Marking /var/tmp/yum-root-3zwBGu/grafana-enterprise-10.4.2-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package grafana-enterprise.x86_64 0:10.4.2-1 will be installed
--> Finished Dependency Resolution
base/7/x86_64 | 3.6 kB 00:00:00
centos-sclo-rh/x86_64 | 3.0 kB 00:00:00
centos-sclo-sclo/x86_64 | 3.0 kB 00:00:00
docker-ce-stable/7/x86_64 | 3.5 kB 00:00:00
docker-ce-stable/7/x86_64/primary_db | 147 kB 00:00:00
extras/7/x86_64 | 2.9 kB 00:00:00
Dependencies Resolved
=========================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================
Installing:
grafana-enterprise x86_64 10.4.2-1 /grafana-enterprise-10.4.2-1.x86_64 420 M
Transaction Summary
=========================================================================================================================
Install 1 Package
Total size: 420 M
Installed size: 420 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : grafana-enterprise-10.4.2-1.x86_64 1/1
### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable grafana-server.service
### You can start grafana-server by executing
sudo /bin/systemctl start grafana-server.service
POSTTRANS: Running script
Verifying : grafana-enterprise-10.4.2-1.x86_64 1/1
Installed:
grafana-enterprise.x86_64 0:10.4.2-1
Complete!
방화벽 포트 해제
- Grafana 는 3000 번 포트를 기본으로 사용하기 때문 방화벽 포트를 해제해 준다.
firewall-cmd --zone=public --permanent --add-port=3000/tcp
firewall-cmd --reload
firewall-cmd --zone=public --list-all
Grafana 실행
#grafana 실행
systemctl start grafana-server.service
#grafana 자동 실행 등록
systemctl enable grafana-server.service
#grafana 중지
#systemctl stop grafana-server.service
#grafana 재시작
#systemctl restart grafana-server.service
- grafana Listen 포트 확인
Grafana 접속
- http://[IP]:3000/login
- admin/admin 으로 접속
728x90
반응형
'07.Monitoring > Grafana' 카테고리의 다른 글
[Grafana] Centos - Grafana + Loki + Promtail 연동 (0) | 2024.06.27 |
---|