# NextGen Metering Configuration with Reporter Example
port: 8081
metricsPort: 8083
env: "prod"
vendor: "aws"
region: "us-west-2"
bucket: "tidbcloud-prod-us-west-2-ng-nextgen-metering"
logLevel: "debug"

nextGenMetering:
  # Metering task configuration
  startTime: 1768276800  
  taskInterval: 15        # Metering task interval (minutes)
  delayMinutes: 5        # Metering delay (minutes)
  enableRecompute: false
  roleArn: "arn:aws:iam::380838443567:role/prod-us-west-2-ng-metering-read-write"

  
  # DeltaLake configuration
  deltaTablePath: "s3://tidbcloud-prod-us-west-2-ng-nextgen-metering/metering/result/metering-data"
  checkpointPrefix: "metering/checkpoints"  # Prefix for checkpoint files
  meteringPrefix: ""         # Prefix for metering data files
  cachePath: "/data/cache"                 # Local cache path for temporary files
  
  # Storage options (used for Delta Lake)
  storageOptions:
    region: "us-west-2"
    AWS_REGION: "us-west-2"
    AWS_IAM_ROLE_ARN: "arn:aws:iam::380838443567:role/prod-us-west-2-ng-metering-read-write"
    # Other storage options configured as needed
  
  # Reporter configuration
  enableReporter: true           # Enable reporting functionality
  reporterInterval: 30          # Reporter task interval (minutes), executed hourly
  maintenance:
    enable: true
    # Interval in minutes (default 1440 = once per day)
    intervalMinutes: 1440
    # Enable deletion of historical rows before the configured threshold
    enableDelete: false
    # Keep data for the last 90 days (optional if deleteBeforeTimestamp is set)
    deleteRetentionDays: 15
    # Absolute cutoff timestamp (Unix seconds). Takes precedence when >0.
    deleteBeforeTimestamp: 0
    # Enable vacuum to clean stale files
    enableVacuum: true
    # Retention window in hours for vacuum (default Delta Lake requirement is 168)
    vacuumRetentionHours: 168
    # Dry run vacuum to preview deletions without removing files
    vacuumDryRun: false
  featureGateFilter:
    gate-nextgen-skip-deleted-metadata:
      fullSwitchTime: 1762855200