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
This commit is contained in:
2026-01-09 16:27:17 +09:00
parent ffed27419a
commit 94af545120
2 changed files with 7 additions and 56 deletions

View File

@@ -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:

View File

@@ -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)