본문 바로가기
Q&A2023년 7월 5일1분 읽기

Grafana 알림 설정하는 방법

송
송민지
조회 709댓글 1

Grafana에서 서버 이상 시 알림을 받는 방법을 알려주세요.

댓글 1

김김영삼3년 전

Grafana 알림 설정:

  1. 알림 채널 설정 (Alerting → Contact Points)
    • Slack, Discord, 이메일, Telegram 등
  2. 알림 룰 생성 (Alerting → Alert Rules)
    # CPU 사용률 90% 이상 5분 지속 시 알림
    Condition: avg(cpu_usage) > 90
    For: 5m
    Labels: severity=critical

Slack 연동 예시:

  1. Slack App에서 Incoming Webhook URL 생성
  2. Grafana → Contact Points → New → Slack
  3. Webhook URL 입력
  4. Alert Rule에서 해당 Contact Point 선택

추천 알림 기준: CPU 90%+, 메모리 85%+, 디스크 90%+, 서비스 다운

Ctrl+Enter로 등록