INIT(repo): monitoring stack setup

This commit is contained in:
2025-12-17 15:06:58 +09:00
commit baee94b69d
23 changed files with 866 additions and 0 deletions

26
loki/argocd/loki.yaml Normal file
View File

@@ -0,0 +1,26 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: loki
namespace: argocd
spec:
project: default
sources:
- repoURL: https://grafana.github.io/helm-charts
chart: loki
targetRevision: 6.24.0
helm:
valueFiles:
- $values/loki/helm-values/loki.yaml
- repoURL: https://gitea0213.kro.kr/bluemayne/infrastructure.git
targetRevision: HEAD
ref: values
destination:
server: https://kubernetes.default.svc
namespace: logging
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@@ -0,0 +1,78 @@
# Loki Helm Values
# Chart: https://grafana.github.io/helm-charts
# Simple single binary deployment
loki:
# Use filesystem storage (simple setup)
storage:
type: filesystem
# Single binary mode for simplicity
commonConfig:
replication_factor: 1
# Schema config
schemaConfig:
configs:
- from: "2024-01-01"
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
# Limits
limits_config:
retention_period: 168h # 7 days
ingestion_rate_mb: 10
ingestion_burst_size_mb: 20
max_streams_per_user: 10000
# Auth disabled for simplicity
auth_enabled: false
# Use single binary deployment (simpler)
deploymentMode: SingleBinary
singleBinary:
replicas: 1
persistence:
enabled: true
size: 10Gi
storageClass: local-path
resources:
requests:
cpu: 100m
memory: 256Mi
# Disable components not needed in single binary mode
backend:
replicas: 0
read:
replicas: 0
write:
replicas: 0
# Gateway disabled (direct access)
gateway:
enabled: false
# Disable all caching (use simple mode)
chunksCache:
enabled: false
resultsCache:
enabled: false
# Disable monitoring components
monitoring:
selfMonitoring:
enabled: false
grafanaAgent:
installOperator: false
lokiCanary:
enabled: false
# Test disabled
test:
enabled: false

6
loki/kustomization.yaml Normal file
View File

@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# ArgoCD Application 리소스는 infrastructure/kustomization.yaml에서 관리
# - argocd/loki.yaml