loki 설치

young·2024년 10월 24일

LGTM

목록 보기
5/9

다운로드

wget https://github.com/grafana/loki/releases/download/v2.8.6/loki-2.8.6.x86_64.rpm

설치

sudo rpm -ivh loki-2.8.6.x86_64.rpm
  • i : install
  • v : 자세한(verbode) 모드로 출력
  • h : 진행 상태를 해시 표시로 보여줌

수정

  • /etc/grafana/grafana.ini

unified_alerting.state_history

# /unified_alerting.reserved_labels 찾기

min_interval = 10s

[unified_alerting.state_history]
enabled = true
backend = "loki"
loki_remote_url = "http://localhost:3100"

feature_toggles

enable = alertStateHistoryLokiSecondary, alertStateHistoryLokiPrimary, alertStateHistoryLokiOnly

서비스 시작/재시작

sudo systemctl start loki.service
sudo systemctl restart loki.service

0개의 댓글