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-southeast-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-southeast-1.vpce-svc-0d22573855c6cf00f
      vpcID: vpc-00b1d57cd62c7c65c
      securityGroupIds:
        - sg-09aafaa2d965fcc83
      subnetIds:
        com.amazonaws.vpce.ap-southeast-1.vpce-svc-0d22573855c6cf00f:
          - subnet-020e3a66c4ee5d9e2
          - subnet-02fc8f99302555454
          - subnet-04cb1b0e43dbf7e87
        com.amazonaws.vpce.ap-southeast-1.vpce-svc-02a910ef812a338d1:
          - subnet-02fc8f99302555454
    dataLink:
      prometheusWriteDuration: 5m
      agentName: vector
      agentNameSpace: vector-agent
      prometheusQueryURL: http://www.ds.ap-southeast-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-southeast-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
