From 94af5451202df382e72da4d33bb765dd84f7d899 Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Fri, 9 Jan 2026 16:27:17 +0900 Subject: [PATCH] REFACTOR(thanos): remove S3 storage integration - Disable Store Gateway and Compactor - Remove Sidecar objectStorageConfig - Keep Thanos Query + Sidecar for HA query - 3-day local retention is sufficient --- prometheus/helm-values.yaml | 9 +++---- thanos/helm-values.yaml | 54 +++---------------------------------- 2 files changed, 7 insertions(+), 56 deletions(-) diff --git a/prometheus/helm-values.yaml b/prometheus/helm-values.yaml index 1ac9b51..b21766d 100644 --- a/prometheus/helm-values.yaml +++ b/prometheus/helm-values.yaml @@ -62,15 +62,12 @@ prometheus: scrapeInterval: 60s # 30s → 60s (메모리 절감) evaluationInterval: 60s # 30s → 60s - retention: 3d # Local retention (S3 has longer retention via Thanos) + retention: 3d # Local retention only (no S3 upload) - # Thanos Sidecar configuration + # Thanos Sidecar configuration (query only, no S3 upload) thanos: image: quay.io/thanos/thanos:v0.37.2 - objectStorageConfig: - existingSecret: - name: thanos-objstore-secret - key: objstore.yml + # objectStorageConfig removed - no upload to MinIO, local storage only storageSpec: volumeClaimTemplate: diff --git a/thanos/helm-values.yaml b/thanos/helm-values.yaml index d6052d5..83e9f06 100644 --- a/thanos/helm-values.yaml +++ b/thanos/helm-values.yaml @@ -65,62 +65,16 @@ queryFrontend: enabled: false # ============================================================================= -# Store Gateway - Reads historical data from S3 +# Store Gateway - Reads historical data from S3 (DISABLED - using local storage only) # ============================================================================= storegateway: - enabled: true - replicaCount: 1 - - # Run on master node for stability - tolerations: - - key: node-role.kubernetes.io/control-plane - operator: Exists - effect: NoSchedule - nodeSelector: - node-role.kubernetes.io/control-plane: "true" - - resources: - requests: - cpu: 15m - memory: 128Mi - limits: - memory: 128Mi - - persistence: - enabled: true - storageClass: local-path - size: 2Gi + enabled: false # ============================================================================= -# Compactor - Compacts and downsamples data in S3 +# Compactor - Compacts and downsamples data in S3 (DISABLED - using local storage only) # ============================================================================= compactor: - enabled: true - - # Run on master node for stability - tolerations: - - key: node-role.kubernetes.io/control-plane - operator: Exists - effect: NoSchedule - nodeSelector: - node-role.kubernetes.io/control-plane: "true" - - # Retention settings - retentionResolutionRaw: 7d # Keep raw data for 7 days - retentionResolution5m: 30d # Keep 5m downsampled for 30 days - retentionResolution1h: 90d # Keep 1h downsampled for 90 days - - resources: - requests: - cpu: 15m - memory: 256Mi - limits: - memory: 256Mi - - persistence: - enabled: true - storageClass: local-path - size: 2Gi + enabled: false # ============================================================================= # Ruler - Alerting rules evaluation (disabled, using Prometheus rules)