prod 로그 수집 구성 (Alloy → Loki → Grafana)

prod 로그 수집 구성 (Alloy → Loki → Grafana) An architecture diagram generated by Archify. K8s API · 파드 로그 스트림 · Architecture component K8s API 파드 로그 스트림 Alloy · DaemonSet · 자기 노드 파드만 tail · 전 노드 Alloy DaemonSet · 자기 노드 파드만 tail Loki · SingleBinary · filesystem PVC 10Gi · node2 (workload=heavy) · retention 14일 Loki SingleBinary · filesystem PVC 10Gi retention 14일 Grafana · Loki datasource · PVC 2Gi · node2 (workload=heavy) Grafana Loki datasource · PVC 2Gi 운영자 브라우저 · Architecture component 운영자 브라우저 로그 tail push :3100 LogQL query NodePort 30082 전 노드 node2 (workload=heavy) Legend Frontend Backend Database Cloud External

배치

  • • ns observability, 수동 helm(CD 비관리) — values는 repo 커밋
  • • Loki·Grafana는 local-path PVC라 node2에 고정
  • • 단일 인스턴스 — 관측 스택이 죽어도 앱 영향 없음

Alloy 규칙

  • • keep 룰로 자기 노드 파드만 수집(중복 tail 제거)
  • • 160h보다 오래된 줄은 drop — Loki 400 배치 폐기 방지
  • • 메트릭은 별도: VictoriaMetrics 단일화