apiVersion: v1
kind: ConfigMap
metadata:
  name: cm-analytics-service
  namespace: kt-event-marketing
data:
  # Server Configuration
  SERVER_PORT: "8086"

  # Database Configuration
  DB_HOST: "analytic-postgresql"
  DB_PORT: "5432"
  DB_NAME: "analytics_db"
  DB_USERNAME: "eventuser"

  # Redis Configuration (service-specific)
  REDIS_DATABASE: "5"

  # Kafka Configuration (service-specific)
  KAFKA_ENABLED: "true"
  KAFKA_CONSUMER_GROUP_ID: "analytics-service"

  # Sample Data Configuration (MVP only)
  SAMPLE_DATA_ENABLED: "true"

  # Batch Scheduler Configuration
  BATCH_REFRESH_INTERVAL: "300000"  # 5분 (밀리초)
  BATCH_INITIAL_DELAY: "30000"      # 30초 (밀리초)
  BATCH_ENABLED: "true"

  # Logging Configuration
  LOG_LEVEL_APP: "INFO"
  LOG_LEVEL_WEB: "INFO"
  LOG_LEVEL_SQL: "WARN"
  LOG_LEVEL_SQL_TYPE: "WARN"
  SHOW_SQL: "false"
  DDL_AUTO: "update"
  LOG_FILE: "logs/analytics-service.log"
