apiVersion: v1
kind: ConfigMap
metadata:
  name: datalink
  namespace: vector-agent
  labels:
    app.kubernetes.io/name: vector
    app.kubernetes.io/instance: datalink
    app.kubernetes.io/component: Agent
data:
  datalink_config.yaml: |
    service:
      # prod
      serverURL: https://www.gs.us-west-2.aws.observability.tidbcloud.com
      vendor: aws
      region: ap-northeast-1
      userARN: arn:aws:iam::557537366020:role/o11y-ft-write-{region}
      specs: ["spec.for.test"]
    auth0:
      grantType: client_credentials
      clientID: {clientid}
      clientSecret: {clientsecret}
      audience: https://tidb-soc2.us.auth0.com/api/v2/
    awsPVE:
      serviceName: com.amazonaws.vpce.ap-northeast-1.vpce-svc-05327a72d0e276c30
      vpcID: vpc-061b83b5324cd500a
      securityGroupIds:
        - sg-09c2967705ea3ca4f
      subnetIds:
        com.amazonaws.vpce.ap-northeast-1.vpce-svc-05327a72d0e276c30:
          - subnet-0d4fb52d0e53e554e
        com.amazonaws.vpce.ap-northeast-1.vpce-svc-0f4e098039d84a112:
          - subnet-07645b2509564bd41
          - subnet-019da53f1ef548637
          - subnet-0d4fb52d0e53e554e
    dataLink:
      prometheusWriteDuration: 5m
      agentName: vector
      agentNameSpace: vector-agent
      prometheusQueryURL: http://www.ds.ap-northeast-1.aws.observability.tidbcloud.com/internal/metrics/
      prometheusQueryPath: api/v1/query
      prometheusTsdbQueryPath: /api/v1/status/tsdb
      logWriteDuration: 5m
      clusterNameSpace: ft-biz-write-test
      bucketName: o11y-prod-shared-ap-northeast-1

      logKeyPrefix: "0/%s/testlog"
      agentARN: arn:aws:iam::557537366020:role/o11y-ft-write-{region}
      alertType: prod
      env: pod
      alertEndPoint:
        - http://{alertendpointip1}:9093/api/v2/alerts
        - http://{alertendpointip2}:9093/api/v2/alerts
