Zabbix 서버 지표를 Grafana로 시각화하기 (1편) — Ubuntu 환경에서 Grafana 설치 및 시작 가이드

“복잡한 Zabbix 운영을 더 효율적으로 만들고 싶다면,
블로그의 핵심 내용을 집대성한 『Zabbix 엔터프라이즈 최적화 핸드북(PDF)』을 확인해보세요.”

https://jikimy.gumroad.com/l/zabbix-master


📘 개요

Zabbix로 데이터를 수집하고 Grafana로 시각화하면,
운영자는 단순한 모니터링 화면이 아니라 **‘지표의 의미가 보이는 대시보드’**를 만들 수 있다.

이 시리즈는 Zabbix–Grafana 실무 연동을 주제로 하며,
1편에서는 Ubuntu 22.04 + Grafana 12.2.1 버전 설치 및 기초 설정 과정을 다룬다.

본 가이드는 공식 문서를 기반으로 하되,
엔지니어 실무 관점에서 꼭 필요한 명령어와 검증 단계만 남긴 최소 구성으로 작성됐다.

설치 관련된 문서는 레퍼런스 사이트가 많아서 대동소이한 부분이 많아 다소 지루할 수도 있지만, 시리즈로 갈수록 여러분들에게 도움이 될 만한 글이 될 것으로 생각한다.


1. Grafana 설치 및 시작

1.1 필수 패키지 설치

Grafana 설치 전, HTTPS 저장소 접근을 위한 필수 유틸리티를 먼저 설치한다.

# apt-get install -y apt-transport-https software-properties-common wget

1.2 GPG key 등록

Grafana 공식 저장소 인증을 위해 GPG key를 등록한다.

# mkdir -p /etc/apt/keyrings/
# wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | tee /etc/apt/keyrings/grafana.gpg > /dev/null

1.3 저장소 추가 (stable 또는 beta 중 선택)

아래 중 하나만 적용한다.
운영환경에서는 stable, 테스트나 최신 기능 검증 환경은 beta를 추천한다.

Stable 버전:

# echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" \
| tee /etc/apt/sources.list.d/grafana.list

Beta 버전:

# echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com beta main" \
| tee /etc/apt/sources.list.d/grafana.list

1.4 패키지 목록 업데이트

# apt-get update

1.5 Grafana 설치

# apt-get install grafana

1.6 Grafana 서비스 시작 및 자동 등록

다음 명령으로 즉시 서비스 시작 + 부팅 자동등록을 동시에 설정할 수 있다.

# systemctl enable --now grafana-server

1.7 서비스 상태 확인

# systemctl status grafana-server

출력 예시는 다음과 같다:

● grafana-server.service - Grafana instance
     Loaded: loaded (/lib/systemd/system/grafana-server.service; enabled)
     Active: active (running) since ...

정상적으로 active (running) 상태면 설치 완료다.


2. Grafana 로그인

  1. 브라우저에서 접속: http://<서버IP>:3000
  2. 기본 계정으로 로그인:
    • Username: admin
    • Password: admin
  3. 최초 로그인 후 비밀번호 변경 메시지 확인 → 새 비밀번호 입력 → Submit

⚠️ 보안상 admin 계정의 비밀번호는 즉시 변경할 것.
운영환경에서는 로컬 계정 대신 LDAP 또는 SSO 연동도 고려해야 한다.


3. 동작 확인 및 환경 점검

항목명령어기대결과
포트 확인ss -tlnp | grep 30003000 users:(“grafana”)
로그 확인journalctl -u grafana-server -fUI 접근 시 로그 출력
방화벽 설정ufw enable 일 경우 :
ufw allow 3000/tcp
외부 접근 허용

4. 다음 단계 예고

다음 편에서는 Zabbix 연동용 플러그인
alexanderzobnin-zabbix-app을 설치하고,
Zabbix API와 연결해 데이터를 불러오는 단계로 넘어간다.

🛠 마지막 수정일: 2025.12.09

ⓒ 2025 엉뚱한 녀석의 블로그 [quirky guy's Blog]. 본문 및 이미지를 무단 복제·배포할 수 없습니다. 공유 시 반드시 원문 링크를 명시해 주세요.
ⓒ 2025 엉뚱한 녀석의 블로그 [quirky guy's Blog]. All rights reserved. Unauthorized copying or redistribution of the text and images is prohibited. When sharing, please include the original source link.

💡 도움이 필요하신가요?
Zabbix, Kubernetes, 그리고 다양한 오픈소스 인프라 환경에 대한 구축, 운영, 최적화, 장애 분석, 광고 및 협업 제안이 필요하다면 언제든 편하게 연락 주세요.

📧 Contact: jikimy75@gmail.com
💼 Service: 구축 대행 | 성능 튜닝 | 장애 분석 컨설팅

📖 E-BooK [PDF] 전자책 (Gumroad): Zabbix 엔터프라이즈 최적화 핸드북
블로그에서 다룬 Zabbix 관련 글들을 기반으로 실무 중심의 지침서로 재구성했습니다. 운영 환경에서 바로 적용할 수 있는 최적화·트러블슈팅 노하우까지 모두 포함되어 있습니다.


💡 Need Professional Support?
If you need deployment, optimization, or troubleshooting support for Zabbix, Kubernetes, or any other open-source infrastructure in your production environment, or if you are interested in sponsorships, ads, or technical collaboration, feel free to contact me anytime.

📧 Email: jikimy75@gmail.com
💼 Services: Deployment Support | Performance Tuning | Incident Analysis Consulting

📖 PDF eBook (Gumroad): Zabbix Enterprise Optimization Handbook
A single, production-ready PDF that compiles my in-depth Zabbix and Kubernetes monitoring guides.