replicaCount: 1
nodeSelector:
  nodeType: worker
configMapName: meteringconfig
image:
  repository: o11-prod-repo-registry.ap-southeast-1.cr.aliyuncs.com/prod/observability-regional-metering-server
  tag: 0e4fe17cfadb273610e30a862d5f3561f9723d6a
  pullPolicy: Always
args: ["--vendor=alicloud"]
resources:
  limits:
    cpu: 1000m
    memory: 3Gi
  requests:
    cpu: 100m
    memory: 1Gi
service:
  containerPort: 8081
  port: 8081
  targetPort: 8081
terminationGracePeriodSeconds: 10
serviceAccountName: regional-server-controller-manager
persistence:
  size: 50Gi
  storageClass: prometheus.ssd

# Configuration for the metering server
config:
  cloudProvider: "alicloud"
  account: "5480039859161595"
  region: "TMPL_REGION"
  logicalRegionName: "TMPL_LOGICAL_REGION"
  env: "prod"
  o11yRegionalDataServiceUrl: https://www.ds.TMPL_LOGICAL_REGION.alicloud.observability.tidbcloud.com

  auth0:
    grantType: client_credentials
    clientID: SECRET_CLIENT_ID
    clientSecret: SECRET_CLIENT_SECRET
    audience: https://tidb-soc2.us.auth0.com/api/v2/

  databases:
    - type: tidb-serverless
      dsn: SECRET_DSN
      use: report

  periodConfig:
    firstPeriod: "TMPL_FIRST_PERIOD"

  scheduleConfig:
    generateStatisticTaskIntervalSeconds: 5
    executeStatisticTaskIntervalSeconds: 30
    mergeStatisticIntervalHours: 1
    generateStatisticReportIntervalHours: 2
    generateStatisticReportImmediately: true
    clearStatisticDataIntervalHours: 24

  commonTasks:
    - statisticClass: "metrics_collection"
      meteringGroup: "dedicated_dataplane"
      env: "dev"
    - statisticClass: "metrics_collection"
      meteringGroup: "dedicated_dataplane"
      env: "staging"
    - statisticClass: "metrics_collection"
      meteringGroup: "dedicated_dataplane"
      env: "prod"
    - statisticClass: "metrics_collection"
      meteringGroup: "dedicated_regional"
      env: "dev"
    - statisticClass: "metrics_collection"
      meteringGroup: "dedicated_regional"
      env: "staging"
    - statisticClass: "metrics_collection"
      meteringGroup: "dedicated_regional"
      env: "prod"
    - statisticClass: "logs_collection_loki"
      meteringGroup: "dedicated_dataplane"
      env: "dev"
    - statisticClass: "logs_collection_loki"
      meteringGroup: "dedicated_dataplane"
      env: "staging"
    - statisticClass: "logs_collection_loki"
      meteringGroup: "dedicated_dataplane"
      env: "prod"
    - statisticClass: "logs_collection_loki"
      meteringGroup: "dedicated_regional"
      env: "dev"
    - statisticClass: "logs_collection_loki"
      meteringGroup: "dedicated_regional"
      env: "staging"
    - statisticClass: "logs_collection_loki"
      meteringGroup: "dedicated_regional"
      env: "prod"
    - statisticClass: "logs_storage_s3"
      meteringGroup: "dedicated_dataplane"
      env: "dev"
    - statisticClass: "logs_storage_s3"
      meteringGroup: "dedicated_dataplane"
      env: "staging"
    - statisticClass: "logs_storage_s3"
      meteringGroup: "dedicated_dataplane"
      env: "prod"
    - statisticClass: "logs_storage_s3"
      meteringGroup: "dedicated_regional"
      env: "dev"
    - statisticClass: "logs_storage_s3"
      meteringGroup: "dedicated_regional"
      env: "staging"
    - statisticClass: "logs_storage_s3"
      meteringGroup: "dedicated_regional"
      env: "prod"


  cloudTasks: []  # Will be populated dynamically based on cloudProvider

  categoryShareProportions:
    - cloudService: "Elastic Compute"
      category: "metrics"
      proportion: 0.8
    - cloudService: "Elastic Compute"
      category: "logs"
      proportion: 0.2
    - cloudService: "EBS"
      category: "metrics"
      proportion: 1.0
    - cloudService: "Simple Storage Service"
      category: "logs"
      proportion: 1.0
    - cloudService: "Data Transfer"
      category: "metrics"
      proportion: 0.8
    - cloudService: "Data Transfer"
      category: "logs"
      proportion: 0.2
    - cloudService: "Elastic Load Balancing"
      category: "metrics"
      proportion: 0.8
    - cloudService: "Elastic Load Balancing"
      category: "logs"
      proportion: 0.2
