Grafana

From HPCWIKI
Jump to navigation Jump to search

Grafana

Template:Status

Template:TOC

Overview

Grafana는 오픈소스 시각화 대시보드 도구. Prometheus, InfluxDB, Elasticsearch 등 다양한 데이터 소스 지원. 모니터링 대시보드 표준.

Summary

  • * 무엇인가? 메트릭 시각화 대시보드. 다중 데이터 소스 지원
  • * 왜 필요한가? Prometheus 등 메트릭을 시각적으로 모니터링
  • * 언제 사용하는가? 서버/컨테이너/네트워크 모니터링

---

Purpose

이 문서가 존재하는 이유

  • Goal: Grafana의 개념, 사용법, 설정 가이드 제공
  • Scope: 기본 개념, 설치/설정, 사용 예제, 모범 사례
  • Non-goals: 고급 커스터마이징, 내부 소스 코드 분석

---

Key Concepts

Template:KeyConcepts

---

Architecture

Grafana는 웹 기반 UI. Prometheus, InfluxDB, Elasticsearch 등 여러 데이터 소스와 연동. 대시보드, 패널, 쿼리로 구성. Alertmanager와 연동.

---

Workflow

1. 1. Grafana 설치

2. 2. 데이터 소스 추가 (Prometheus)

3. 3. 대시보드 생성/임포트

4. 4. 패널 구성 (PromQL)

5. 5. 알람 설정

6. 6. 공유/임베드

---

Configuration

# Grafana 설치
curl -fsSL https://apt.grafana.com/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/grafana.gpg
echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
sudo apt update
sudo apt install grafana

# Prometheus 데이터 소스 추가
# http://grafana:3000 -> Configuration -> Data Sources -> Add Prometheus

# 대시보드 임포트
# http://grafana:3000 -> Dashboards -> Import -> ID 1860 (Node Exporter)

---

Best Practices

  • Prometheus + Grafana 조합 표준
  • Node Exporter 대시보드 임포트 (ID: 1860)
  • Kubernetes 대시보드 임포트 (ID: 14027)
  • 대시보드 JSON으로 버전 관리
  • 접근 제어 설정

---

Limitations

  • 대시보드 설정 복잡도
  • 대규모 메트릭 처리 성능
  • 자체 데이터 소스 개발 필요

---

References

---

Related Pages