📊

그래프

모니터링

지표 시각화를 위한 아름다운 대시보드를 갖춘 분석 및 모니터링 플랫폼

배포 정보

전개: 2-5분
범주: 모니터링
최소 RAM: 512MB
지원하다: 티켓 및 이메일

이 가이드 공유하기

개요

Grafana는 시계열 데이터를 아름답고 대화형인 대시보드와 시각화로 바꿔 주는 선도적인 오픈 소스 모니터링 및 관찰 가능성 플랫폼입니다. Prometheus, InfluxDB, Elasticsearch, PostgreSQL, MySQL, CloudWatch 등 수십 개의 데이터 소스에 연결하여, 하나의 인터페이스에서 지표, 로그, 트레이스를 조회하고 시각화하고 알림을 설정하고 탐색할 수 있습니다. 인프라, 애플리케이션, IoT 기기, 비즈니스 지표 중 무엇을 모니터링하든, Grafana는 데이터를 한눈에 이해하도록 돕는 인상적인 대시보드를 만드는 도구를 제공합니다.

주요 기능

다중 데이터 소스 지원

Prometheus, InfluxDB, Elasticsearch, MySQL, PostgreSQL, CloudWatch 등 100개 이상의 소스를 조회할 수 있습니다

아름다운 대시보드

그래프, 게이지, 히트맵, 테이블, 사용자 정의 패널을 갖춘 풍부한 시각화 라이브러리입니다

알림 및 통지

Slack, PagerDuty, 이메일, 웹훅 등을 통한 유연한 알림을 제공합니다

탐색 및 쿼리

직관적인 쿼리 빌더로 임시 쿼리와 로그 탐색을 수행합니다

템플릿과 변수

다양한 환경과 필터에 맞게 변하는 동적 대시보드를 만듭니다

플러그인 및 확장

데이터 소스, 패널, 애플리케이션을 위한 폭넓은 플러그인 생태계를 제공합니다

사용 사례

• 인프라 모니터링(서버, 컨테이너, Kubernetes)
• 애플리케이션 성능 모니터링(APM)
• IoT 및 센서 데이터 시각화
• 비즈니스 분석 및 KPI 대시보드
• 로그 수집 및 분석
• 네트워크 모니터링 및 트래픽 분석
• 데이터베이스 성능 모니터링

설치 가이드

Ubuntu 설치:
# Add APT repository
sudo apt-get install -y apt-transport-https software-properties-common
sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list

# Install
sudo apt-get update
sudo apt-get install grafana

# Start service
sudo systemctl start grafana-server
sudo systemctl enable grafana-server

# Access at http://localhost:3000
# Default login: admin/admin
Docker 설치:
docker run -d --name=grafana -p 3000:3000 \
  -v grafana-storage:/var/lib/grafana \
  grafana/grafana-oss:latest
Docker Compose(Prometheus 포함):
version: '3'
services:
  grafana:
    image: grafana/grafana-oss:latest
    ports:
      - "3000:3000"
    environment:
      - GF_SECURITY_ADMIN_PASSWORD=admin
      - GF_INSTALL_PLUGINS=grafana-clock-panel
    volumes:
      - grafana-data:/var/lib/grafana
  
  prometheus:
    image: prom/prometheus:latest
    ports:
      - "9090:9090"
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml
      - prometheus-data:/prometheus

volumes:
  grafana-data:
  prometheus-data:

설정 팁

grafana.ini 구성:
[server]
http_port = 3000
domain = grafana.yourdomain.com
root_url = https://grafana.yourdomain.com

[database]
type = postgres
host = localhost:5432
name = grafana
user = grafana
password = password

[security]
admin_user = admin
admin_password = secure_password

[smtp]
enabled = true
host = smtp.gmail.com:587
user = your-email@gmail.com
password = your-app-password
from_address = grafana@yourdomain.com
Prometheus 데이터 소스 추가(API):
curl -X POST http://admin:password@localhost:3000/api/datasources \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Prometheus",
    "type": "prometheus",
    "url": "http://localhost:9090",
    "access": "proxy",
    "isDefault": true
  }'
대시보드 JSON(간단한 CPU 대시보드):
{
  "dashboard": {
    "title": "CPU Monitoring",
    "panels": [{
      "title": "CPU Usage",
      "type": "graph",
      "targets": [{
        "expr": "100 - (avg(irate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)"
      }]
    }]
  }
}
모범 사례:
- 폴더를 사용하여 대시보드를 정리하세요
- 유연성을 위해 대시보드 변수를 구현하세요
- 적절한 임계값으로 알림 규칙을 설정하세요
- 운영 환경에서는 SQLite가 아니라 PostgreSQL/MySQL을 사용하세요
- 리버스 프록시(Nginx/Caddy)로 HTTPS를 활성화하세요
- 인증(OAuth, LDAP, SAML)을 구성하세요
- 대시보드와 구성을 정기적으로 백업하세요
- Prometheus로 Grafana 자체를 모니터링하세요

기술적 요구 사항

시스템 요구 사항

  • 메모리: 512메가바이트 RAM

이 기사를 평가해 주세요

★★★★★
-
글을 읽고 계신 분들...

애플리케이션 배포 준비되셨나요? 그래프?

간단한 VPS 배포 프로세스로 몇 분 안에 시작하세요

Deploy in about 2 minutes • Full root access • Support by ticket and email