다운로드
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 : 진행 상태를 해시 표시로 보여줌
수정
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