You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Grafana datasource: 기존 kube-prometheus-stack Grafana에 `Loki` datasource를 추가합니다.
74
74
75
-
이 구성은 클라우드 없는 단기 retention 기준선입니다. prod 로그량이 커지거나 로그 저장소 장애 도메인을 더 분리해야 하면, Loki는 내부에서 별도 운영하는 S3 호환 object storage, 예를 들어 독립 MinIO cluster, 로 이전합니다. Grafana Loki chart의 내장 MinIO subchart는 신규 운영 의존성으로 사용하지 않습니다.
75
+
이 구성은 클라우드 없는 단기 retention 기준선입니다. Longhorn PVC는 hostPath/emptyDir보다 낫습니다. Kubernetes에서 lifecycle을 관리할 수 있고, PVC 사용률과 Longhorn volume health를 운영자가 볼 수 있기 때문입니다. 다만 durable log archive는 아니므로 장애 분석용 단기 저장소로만 취급합니다.
- Grafana Loki chart의 내장 MinIO subchart는 사용하지 않습니다.
84
+
85
+
prod 로그량이 커지면 먼저 noisy log를 줄이거나 retention을 줄입니다. 그래도 부족하면 Longhorn replica 상태와 node 여유 disk를 확인한 뒤 PVC를 증설합니다. 로그 저장소 장애 도메인을 더 분리해야 하면, Loki는 내부에서 별도 운영하는 S3 호환 object storage, 예를 들어 독립 MinIO cluster, 로 이전합니다.
- Monitoring: Loki and Alloy ServiceMonitors are enabled for kube-prometheus-stack.
9
9
10
+
This is the selected baseline while cloud object storage is unavailable. Longhorn PVC is better than local hostPath or emptyDir because it gives Kubernetes-managed persistence and operationally visible volume health without introducing a new storage service. It is still not a durable log archive and should be treated as short-retention troubleshooting storage.
11
+
10
12
## Install or Upgrade
11
13
12
14
Install or upgrade kube-prometheus-stack first so the Prometheus Operator CRDs are present and the Grafana `Loki` datasource is provisioned. Then install Loki and Alloy.
@@ -73,4 +75,14 @@ Grafana should also show:
73
75
74
76
## Notes
75
77
76
-
This is not a horizontally scalable Loki design. It is the selected cloud-free baseline for short retention. If production log volume grows or logs must survive a node/PVC failure domain, move prod to an internally operated S3-compatible object store such as a separately managed MinIO cluster.
78
+
This is not a horizontally scalable Loki design. It is the selected cloud-free baseline for short retention.
79
+
80
+
Keep these invariants unless the storage design changes intentionally:
81
+
82
+
- Loki stays in `Monolithic` deployment mode.
83
+
- Loki uses filesystem storage on a Longhorn PVC.
84
+
- The PVC size is explicit at `50Gi`, and `LokiPVCAlmostFull` alerts at 85%.
85
+
- Retention stays short: dev 72h, prod 168h.
86
+
- The Loki chart's MinIO subchart stays disabled. If object storage becomes available, use a separately operated S3-compatible service and migrate Loki storage deliberately.
87
+
88
+
If production log volume grows, first reduce noisy application logs or shorten retention. Increase the Longhorn PVC only after confirming available node storage and Longhorn replica health. If logs must survive a node/PVC failure domain, move prod to an internally operated S3-compatible object store such as a separately managed MinIO cluster.
0 commit comments